Add better window resize handling
Merge pull request #70 from ninjadev/resize-handling

Add better window resize handling