title: Displaying an image only on one frame in Tkinter
body: <p>I've been trying to create a simple scenario game and I can't seem to get the image to display after the title. I would appreciate it if someone could help me. Here is the code:</p>
  <pre><code>import tkinter
  from PIL import ImageTk, Image
  
  def page1():
      page1text2.pack()
      page2text.pack_forget()
      img = ImageTk.PhotoImage(Image.open(&quot;game.ppm&quot;))
      imglabel = tkinter.Label(window, image=img).grid(row=1, column=1)
      
  def page2():
      page1text2.pack_forget()
      page2text.pack()
  
  window = tkinter.Tk()
  
  page1btn = tkinter.Button(window, text=&quot;Page 1&quot;, command=page1)
  page2btn = tkinter.Button(window, text=&quot;Page 2&quot;, command=page2)
  
  page2text = tkinter.Label(window, text=&quot;This is page 2&quot;)
  page1text2 = tkinter.Label(window, text=&quot;Forest Camping Trip&quot;, fg=&quot;red&quot;, font=&quot;Times 50 bold&quot;)
  
  page1btn.pack()
  page2btn.pack()
  
  
  window.mainloop()
  </code></pre>