changing image cropping

to resize, crop if necessary to maintain aspect ratio (centre gravity)