Fixes #43. An error window is now created asking the user to select a different geometry if the selected geometry is not the rectangle.