title: Image turns dark after converting
body: <p>I am working with a dataset that contains .mha files. I want to convert these files to either png/tiff for some work. I am using the Medpy library for converting.</p>
  <pre><code>image_data, image_header = load('image_path/c0001.mha')
  
  from medpy.io import  save
  save(image_data, 'image_save_path/new_image.png', image_header)
  </code></pre>
  <p>I can actually convert the image into png/tiff format, but the converted image turns dark after the conversion. I am attaching the screenshot below. How can I convert the images successfully?</p>
  <p><a href="https://i.stack.imgur.com/o9cSK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o9cSK.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/El58j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/El58j.png" alt="enter image description here" /></a></p>