render() method implemented using temporary files