title: Conversion between Pillow Image object and numpy array changes dimension
body: <p>I am using Pillow and numpy, but have a problem with conversion between Pillow Image object and numpy array.</p>
  
  <p>when I execute following code, the result is weird.</p>
  
  <pre><code>im = Image.open(os.path.join(self.img_path, ifname))
  print im.size
  in_data = np.asarray(im, dtype=np.uint8)
  print in_data.shape
  </code></pre>
  
  <p>result is </p>
  
  <pre><code>(1024, 768)
  (768, 1024)
  </code></pre>
  
  <p>Why dimension is changed? </p>