Update PIL imports for compatibility with Pillow (PIL-2)
Brought to you by:
herrekberg
Pillow (PIL-2) is a drop-in replacement for the old Python Imaging Library. Some distros (e.g. Gentoo) are trying to switch to Pillow from PIL-1 because unlike PIL-1, Pillow is compatible with both python2 and python3. See https://github.com/python-imaging/Pillow for more details.
Pillow is mostly backwards-compatible with PIL-1; however, import statements of the form "import Imaging" have to be changed to "from PIL import Imaging" in order to be worth both with PIL-1 and Pillow. The attached patch does so.