Add option to create invisible mask layer
Fix incorrect 'this' reference in _onResize