Add an onRender callback option