maxColors now working, but some image quality is lost from maxColor conversion.