I am trying to train a neural network with keras and tensorflow. And I would like to randomly zoom in or out of the images in a batch by the same amount. The following code