From generalized entropies to image processing