Fix jpeg output orientation.