Fixed #174. We were not checking if the image was landscape when training.