makes possible to change the image type