Resize a batch of images.