delete unrelated images.