from PIL import ImageTk, Image in python 3.8 code example
Example: what is imageTk in pil python
The ImageTk module contains support to create
and modify Tkinter BitmapImage and PhotoImage objects
from PIL images. ... This can be used everywhere Tkinter expects an image object. The given image must have mode “1”.