photo destroying and uploading