Rescale an image to a specific width and height. The image will be resized to fit the specified width and height while maintaining the original aspect ratio unless the crop
parameter is set to true. The image will be returned in the same format as the original image.