I was looking at the imagemask-with-pattern.ps test case in http://bugs.ghostscript.com/show_bug.cgi?id=689818 and noticed the "pop" in the /PaintProc. Does this change fix the bug? - /PaintProc { CairoPattern } + /PaintProc { pop CairoPattern }