- Make the distinction between 4096 colors and color quantization clearer in the code.
- Combine rectangles that are next to each other, and of the same color, into polygons.
- Divide larger images into 128x128 tiles when converting.
- Experiment with tile sizes, to see if it increases performance.
- Benchmark and profile some more.