Fix rendering with live resizing of NSView