make color distance computation swappable