Updated to Python 3 and Pillow.