add photo uploader code