Changed PIL to pillow