Break the rendering functions into their own module