Fixed bug where autooriented images would not be cropped properly.