Fixes broken masking in Canvas renderer