transform_crop function

Crop the given image at specified location and output size