Switch from RGB to LAB colorspace for distance calculations