how to use PIL.Image.new code example
Example 1: PIL image example
>>> from PIL import Image
>>> im = Image.open("image.jpg")
>>> im.show()
Example 2: convert rgb image to binary in pillow
from PIL import Image
col = Image.open("cat-tied-icon.png")
gray = col.convert('1')
bw.save("result_bw.png")