Using render_file and render_text in lib.rs to get rid of unused code warnings