Track the current PDF fill color on the graphics stack alongside the CTM and record an Ink classification (mono/gray/color) per image-draw event. Image masks are painted with the current fill color, so this enables later device promotion. Color operators are tolerant of malformed operands to preserve robustness on untrusted input.