Deleting unused images.