render and save to file