auto orienting image uploads