updated photo uploader