tkinter photoimage methods code example
Example 1: image in tkinter
import tkinter as tk
window = tk()
canvas = Canvas(window, width=300, height=300)
image = PhotoImage('path')
canvas.create_image(height=40, width=40, img=image)
Example 2: image in tkinter
pip install pillow