Pulled essential color mapping into faster function.