Render to_dir option for the render api