added simple quantizer preserving all colors