Fix PIL import

The previous import doesn't work anymore with recent versions of
the library.