make new_rendered_fz_pixmap work for palettes containing exactly 256 colors
speed up new_rendered_fz_pixmap for grayscale documents