tiff: set palette in the context when specified in TIFF_PAL tag