title: How to load an image and show the image using keras?
body: <pre><code>%matplotlib inline
  from keras.preprocessing import image
  
  import matplotlib.pyplot as plt
  import numpy as np
  img = np.random.rand(224,224,3)
  plt.imshow(img)
  plt.show()
  
  img_path = "image.jpeg"
  img = image.load_img(img_path, target_size=(224, 224))
  print(type(img))
  
  x = image.img_to_array(img)
  print(type(x))
  print(x.shape)
  plt.imshow(x)
  </code></pre>
  
  <p>I have some code like this which should print the image. But it shows the image in wrong channels. What am i missing here?</p>