用Pillow替换PIL