Fixed photo upload.
Fixes reigstration.