Python 3 and Pillow conversion

I corrected a few print statements and imports to make this Pillow and Python3 compatible.