Move draw template function to render_geometry.cpp