deleting photos before upload