Major import fixes. Fixed PIL/Pillow imports. Fix print statements. Replaced StdImage until we know what happens.