fixed photo uploader bug