Crops a random part of the image ensuring objects are kept, then resizes to training size.