Image cropper and compressor