Test iteration of deleting cached image.