Generalized fractal transforms and self-similar images