Deprecated render function. prepareGrid should be used instead.