fix color distance calc, wtf was i smoking?