Scale images, also properly take care of orientation