switch to passing the render window to `render`