title: Strange looking images when converting numpy array to Pillow Image
body: <p>I am converting a numpy array to a pillow Image using the following line of code</p>
  <p><code>pil_image = Image.fromarray(image_array, 'RGB')</code></p>
  <p>Numpy array has a shape of (512,960) and can only ever contain 2 values. Those values are 0.00000 or 255.00000.</p>
  <p>The images that I am expecting to get should look something like this with it only being black and white:</p>
  <p><a href="https://i.stack.imgur.com/pWIVg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pWIVg.jpg" alt="enter image description here" /></a></p>
  <p>But instead it looks like this:</p>
  <p><a href="https://i.stack.imgur.com/IJUld.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IJUld.png" alt="enter image description here" /></a></p>
  <p>How can I resolve this issue?</p>