Image Compression and cropping