Save ROIs on window close.
closes #149.