add feature to delete method in image