Move getPalette method to Croma object