fix PIL import varies based on install method

If PIL is installed with easy_install (or pip too I think), there is no
module named PIL and import has to be ``import Image``. Changed PIL
import to be conditional; if ``from PIL import Image`` fails, falls
back to ``import Image``.