Changed import statement for PIL, fixed print statements to strip
non-ascii chars