trainer, requires training images to be cropped to the same size