Issue 129

Don't cache more than 256 colors in lib/draw.

closes issue #129