Changed delegate prototype to make it easier to use the renderer and customize it.