removes unused and duplicate icons.