Conversion from RGBA -> P

Includes sane defaults for quantizing RGBA images.

Fixes #544