color palette extraction in golang