title: AttributeError: module 'scipy.misc' has no attribute 'toimage'
body: <p>While executing the below code:</p>
  
  <pre><code>scipy.misc.toimage(output * 255, high=255, low=0, cmin=0, cmax=255).save(
      params.result_dir + 'final/%5d_00_%d_out.png' % (test_id, ratio))
  </code></pre>
  
  <p>I get the below error:</p>
  
  <blockquote>
    <p>AttributeError: module 'scipy.misc' has no attribute 'toimage'</p>
  </blockquote>
  
  <p>I tried installing Pillow as mentioned here: <a href="https://stackoverflow.com/questions/15345790/scipy-misc-module-has-no-attribute-imread">scipy.misc module has no attribute imread?</a> But the same error persisted. Please help. Thanks.</p>