This application was born after stumbling upon this epic site
and wondering how this picture was made.
Building the palette is the heaviest operation and may hang on low cpu/memory browsers.
RgbQuant is used to establish the palette matching.