updated photo uploader to work right