fix auto-orient for iOS images