Tweak PIL/Image detection, should work with Pillow now.

Noticed by Andreas Tille during Debian packaging.