How to Save What You Render to a File