fixed render when resizing
Merge pull request #156 from brovador/fix-resize-render

Fixed render when resizing