(refactor) Deprecated old functions and replaced them with render_file and render_text