correct upload and delete pictures