removing redundant images