Use plotly offline to generate graphs as images : <p>I am working with plotly offline and am able to generate an html file using</p>

<pre><code>plotly.offline.plot({"data": data, "layout": layout})
</code></pre>

<p>It works great. The graph is generated correctly and the html file gets saved to my current directory. </p>

<p>What I want, though is, using plotly offline, is to have an image (.png, .jpg, etc.) file saved instead. Am I on the right track? What do I need to do from here?</p>
