Added support for Pillow (alternative to PIL). Closes #45