title: How to insert an image using Canvas in Tkinter?
body: <p>I am trying to insert an image in my python application using Canvas in tkinter. The code for the same is:</p>
  
  <pre><code>class Welcomepage(tk.Frame):
  
  def __init__(self, parent, controller):
      tk.Frame.__init__(self,parent)
      canvas = tk.Canvas(self, width = 1000, height = 1000, bg = 'blue')
      canvas.pack(expand = tk.YES, fill = tk.BOTH)
      image = tk.PhotoImage(file="ice_mix.gif")
      canvas.create_image(480, 258, image = image, anchor = tk.NW)
  </code></pre>
  
  <p>The image is getting read from the source but still not getting displayed in the frame.I am new to the GUI programming someone please help me out.</p>