Store size and position of main window in properties file