Change to the colour distance algorithm