- reorganized code
- improved image handling (quantizing to proper palette before converting)
- added different modes:
 -- b&w (one color)
 -- grayscale
 -- color (16 colors)