Remove uneeded images.