Remove redundant images.