Photo upload fixes