Fix issue when resizing the window causing the mask and guides to increase in size rather than resize to the new window dimensions. Fixes #35