title: Webshot() not working with wordcloud2() when figPath parameter is passed in r.
body: <p>I am using webshot to save the html widget created by wordcloud2 but whenever i pass a png file to the figPath, i get a blank image. I can see the wordcloud if i open the .html file but the png created by webshot is blank. It works fine when figPath = NULL. I can't figure out why this is happening. </p>
  
  <p>Here's my code :</p>
  
  <pre><code>library(wordcloud2)
  library(RColorBrewer)
  
  File &lt;- "image.png"
  library(webshot)
  library(htmlwidgets)
  
  
  graph &lt;- wordcloud2(freqdf, size=clsize, color =clcolor, backgroundColor =clbgcolor,
                    figPath = clfigpath) 
  
  saveWidget(graph,"tmp.html",selfcontained = FALSE)
  webshot("tmp.html",File, delay = 20)
  </code></pre>