Fixes broken masking in Canvas renderer
Merge pull request #1054 from gordyr/canvmaskpatch

Fixes broken masking in Canvas renderer