Added access to the mask (useful when setting the shadowPath of a layer)