able to specify an object wrapper for rendering

There is a need to beeable to specify an object wrapper so it has been
added as a constructor parameter.