Added a way to upload and read user photo.