Fix broken photo upload.