Remove extraneous spacing from train images