Fixing photo uploads