renderToFile as api method