if (consumer != null)
    public void setColorModel(ColorModel model)     {		origmodel = model;		newmodel = model;	if( ( model instanceof IndexColorModel) && canFilterIndexColorModel  ) {		newmodel = filterIndexColorModel( (IndexColorModel) model );		consumer.setColorModel(newmodel);	    }	else {		consumer.setColorModel(ColorModel.getRGBdefault());		}	}