Added a renderWrapper around the rendering of the scene.