Use PILLOW
Adjust for python version 2.7
Add missing callback