switch to passing the render window to `render`
Merge pull request #508 from cgaebel/master

switch to passing the render window to `render`