Saving width, height and maximized properties (closes #3)