title: Not able to display image icon using tkinter
body: <p>I'm working on a project, I created my own logo and the logo should be displayed on the topframe(the frame with white background) but the logo is not getting displayed , a white background gets displayed instead:</p>
  <p>code:</p>
  <pre><code>class FirstPage(tk.Frame):
      def __init__(self, parent, controller):
          tk.Frame.__init__(self, parent)
          self.configure(bg=&quot;#E2611F&quot;)
          top_frame=Frame(self,bg=&quot;#FDA170&quot;,width=900,height=100)
          top_frame.place(x=0,y=0)
          logo=PhotoImage(file=r&quot;C:\Users\pavit\AppData\Local\Programs\Python\Python310\python programs\icson3.png&quot;)
          Label=tk.Label(top_frame,image=logo,).place(x=10,y=10)
          Button = tk.Button(self, text=&quot;Next&quot;, font=(&quot;Arial&quot;, 15), command=lambda: controller.show_frame(ThirdPage))
          Button.place(x=650, y=450)
  </code></pre>
  <p>output:
  [in the picture]<a href="https://i.stack.imgur.com/icQm7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/icQm7.png" alt="output" /></a></p>
  <p>Please help me out to place the logo correctly</p>