image library for python 3,img.save('output.png')