title: How do I resolve 'Contract' object has no attribute 'filter', in PIL ImageEnhance module?
body: <p>I'm having an issue with my code in production. It works locally- I'm not sure how to troubleshoot the issue.</p>
  
  <p>From what I can tell, PIL is the same version in both environments. The Image module works as expected both locally and in production- ImageEnhancement is causing issues.</p>
  
  <p>Locally, the following code works as expected.</p>
  
  <pre><code>from PIL import Image
  from PIL import ImageEnhancement
  
  image = Image.open("a.jpg")
  newImage = ImageEnhance.Contrast(image)
  newImage.enhance(1.5)
  newImage.save("newImage.jpg")
  </code></pre>
  
  <p>However when trying this in my production environment, I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "analyse.py", line 95, in &lt;module&gt;
    processedImage = ImageEnhance.Sharpness(processedImage)
    File "/usr/lib/python2.7/dist-packages/PIL/ImageEnhance.py", line 97, in __init__
  self.degenerate = image.filter(ImageFilter.SMOOTH)
  AttributeError: 'Contrast' object has no attribute 'filter'
  </code></pre>