fix cleanup of images that are now shown yet