fix bug: first convert to float then convert to CIE
implement patch selection from exemplars

closes #6