Photo for registration working and saving on server