make new_rendered_fz_pixmap work for palettes containing exactly 256 colors