Added a lot of functionality to ImageTransformer (not tested yet)