Fix issues of redrawing paintImageMaskXObject commands.