cropping images differently using the centroid of the image instead of minRect*()