Auto orient image before reading metadata