use outerWidth & height for saving previous context window