Add render and renderFile methods