delete images when deleting a record