Code to create an SVG file from image pixels, but move the colors into a limited range