fix to support Pillow instead of PIL
fix wrong param type failure when using SWIG 3.0
Merge pull request #129 from mindw/swig-3_0-fix

Swig 3 0 fix