Cleanup render_utils. Closes #296. Closes #307.