JPEG and JPEG2000 Image transformations