Don't recreate context if size doesn't change.

This prevents flicker when scrolling the browser window.