title: Problem in how to do image processing for some images - Error: AttributeError: type object 'Image' has no attribute 'open
body: <p>I get an error when performing image processing for some images using python. The error is:</p>
  <blockquote>
  <p>&quot;AttributeError: type object 'Image' has no attribute 'open'&quot;.</p>
  </blockquote>
  <p>I would be happy if you can review the code below and help me to fix this error. </p>
  <pre><code>#imprint text on image 
  
  from PIL import Image
  
  from PIL import ImageFont
  
  from PIL import ImageDraw
  
  from IPython.display import Image
  
  list2 = ['mydata/marketst670503.jpg','mydata/marketst8407.jpg','mydata/potsdamriot6805.jpg','mydata/rescue671221a.jpg']
  
  outfile = 'sample-text.jpg'
  
  
  for line in list2:
  
      print (line)
  
      img = Image.open(line)
  
      draw = ImageDraw.Draw(img)
  
      # font = ImageFont.truetype(&lt;font-file&gt;, &lt;font-size&gt;)
  
      font = ImageFont.truetype(&quot;Colombia.ttf&quot;, 200)
  
      draw.text((0, 0),&quot;Sample Text&quot;,(255,0,0),font=font)
  
      img.save(outfile)
  
      display(Image(filename=outfile))
      
  </code></pre>