adding feature to delete pictures