Added centerCrop function

Allows for images to be cropped from the center instead of a side