Class to help handle image resizing and cropping