fixed error when uploading photo on account creation
fixed broken image upload feature