Issue #76. Simplify cairo mask case.