if (consumer != null)
    public void setPixels(int x, int y, int w, int h,                           ColorModel model, byte[] pixels,                          int offset, int scansize)    {	if(model == origmodel && (model instanceof IndexColorModel) && canFilterIndexColorModel)	{			consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize);	}	else	{	    int intPixels[] =		convertColorModelToDefault( x, y, w, h, model, pixels, offset, scansize );	    filterRGBPixels( x, y, w, h, intPixels, offset, scansize );	    consumer.setPixels(x, y, w, h, ColorModel.getRGBdefault(), intPixels, offset, scansize);		}	}