Fix canvas masking with round rectangles