Auto rotate uploaded images