Photo uploads fixed

Fixing photo upload bug