Cropping a minibatch of images, each image is differently

Maybe How to resize a tensor or image will help?