title: PIL load RGB matrix of a grayscale image
body: <p>How can I load the RGB matrix of an image. Basically, if I have a 224x224 image(grayscale), I need it's RGB matrix so I want a 224x224 matrix consisting of 3 element tuples. I have tried:</p>
  
  <pre><code>f="/path/to/grayscale/image"
  image = Image.open(f)
  new_width  = 224
  new_height = 224
  im = image.resize((new_width, new_height), Image.ANTIALIAS)
  im=np.array(im)
  print(im)
  </code></pre>
  
  <p>and it prints:</p>
  
  <pre><code>[[195 195 195 ..., 101 104 105]
   [195 195 195 ..., 102 105 106]
   [194 194 194 ..., 104 109 111]
   ..., 
   [137 138 140 ..., 209 207 206]
   [133 134 136 ..., 209 207 206]
   [132 133 135 ..., 209 207 206]]
  </code></pre>
  
  <p>After some testing, I realised that it was because of the image being grayscale. How can I load the RGB matrix of a grayscale image?</p>