title: Why "png" format is not recognizable in Decision Tree Python?
body: <p>Code:</p>
  <pre><code>graph = pdot.graph_from_dot_data(dot_data.getvalue())  
  Image(graph.create_png())
  </code></pre>
  <p>Got the following error during execution:</p>
  <pre><code>InvocationException :Traceback (most recent call last)
  &lt;ipython-input-17-1d44fd70829d&gt; in &lt;module&gt;
        3 #(graph,) = pydot.graph_from_dot_data(dot_data.getvalue())
        4 graph = pdot.graph_from_dot_data(dot_data.getvalue())
  ----&gt; 5 Image(graph.create_png())
  
  D:\Jupi\lib\site-packages\pydotplus\graphviz.py in &lt;lambda&gt;(f, prog)
     1795             self.__setattr__(
     1796                 'create_' + frmt,
  -&gt; 1797                 lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog)
     1798             )
     1799             f = self.__dict__['create_' + frmt]
  
  D:\Jupi\lib\site-packages\pydotplus\graphviz.py in create(self, prog, format)
     2030             raise InvocationException(
     2031                 'Program terminated with status: %d. stderr follows: %s' % (
  -&gt; 2032                     status, stderr_output))
     2033         elif stderr_output:
     2034             print(stderr_output)
  
  InvocationException: Program terminated with status: 1. stderr follows: Format: &quot;png&quot; not recognized. Use one of:
  </code></pre>
  <p>InvocationException: Program terminated with status: 1. stderr follows: Format: &quot;png&quot; not recognized. Use one of:</p>
  <p>Downgraded and Upgraded pydot versions, Uninstalled pydot2 and installed pydot.Tried many alternatives.Still,can't resolve the issue.Help me solve this .Thanks!</p>