Aspect Ratio to image compression