Use CIE lab to compute SSD instead of comparing directly RGB colours