added optional paletted png output
Merge remote-tracking branch 'upstream/master'
safe bool casting
only convert for ncolors<=256
make PIL optional
bugfix: im.getcolors() returns None for > 256 colors
added Pillow as a requirement
Merge pull request #2 from jblarsen/paletted_png

Paletted PNG output