Resizing now works even while rendering

Also does an initial repaint when first shown