Use quantized image only to calculate entropy. Crop original image.

The quantized image was being returned and thus every image cropped was the quantized version (8-bit). This fix crops the original image but continues using the quantized image to calculate the entropy for cropping.

/cc @netroy