remove the images from the DOM after they are shown