Add redrawOnResize flag (off by default) to allow resizing