Fixed photo upload bug.