Allow different color spaces to be used for similarity measurement.