deleting pictures while clicking on delete icon