title: How to get the image name of a label in python tkinter?
body: <p>Suppose I have below codes:</p>
  <pre><code>import tkinter as tk
  from PIL import ImageTk, Image
  
  root = tk.Tk()
  
  my_img = ImageTk.PhotoImage(Image.open(&quot;./Images/img.jpg&quot;))
  my_img1 = ImageTk.PhotoImage(Image.open(&quot;./Images/img1.jpg&quot;))
  my_img2 = ImageTk.PhotoImage(Image.open(&quot;./Images/img2.jpg&quot;))
  image_list = [my_img, my_img1, my_img2]
  label1 = tk.Label(root, image=image_list[0])
  print(label1.cget('image'))
  </code></pre>
  <p>I want to get the name of the image that is currently assigned to label1, in this example, the result I want to get is &quot;my_img&quot;, how to do it? Thank you.</p>