fix for auto orienting photos