expose interface to render to memory