Fix flickering when resizing
Merge pull request #175 from mk21/patch-2

Fix flickering when resizing