Removes redundant images