adding feature to delete images