1. A computer-readable medium having computer-executable instructions, comprising: adding a bias to a data structure, wherein the data structure is arranged to store counts of pixel colors of an image; adding counts of pixel colors to the data structure; grouping colors from the image via the data structure into a number of buckets until the number of buckets is less than or equal to a number of colors in a palette; and mapping a color of a pixel in the image to a color in the palette.