Optimize encoding to sixel sequence.

(http://mlterm.sf.net/optimize-sixel.png)