title: Tkinter canvas with image is just white
body: <p>I have a circular PNG image which is of size <code>2210×2210</code> and in my Python application I'm using the <code>Tkinter</code> library and <code>PIL ImageTk &amp; Image</code> to resize and display the image in a canvas. The code I ended up with is:</p>
  
  <pre><code>image=Image.open("/filePath")
  image=image.resize((60,60),Image.ANTIALIAS)
  powerImage=Tkinter.Canvas(self,width=60,height=60)
  powerImage.grid(column=1,row=0)
  powerImage.create_image(0,0,image=ImageTk.PhotoImage(image),anchor=Tkinter.NW)
  </code></pre>
  
  <p>--Updated Code</p>
  
  <pre><code>image=Image.open("/filePath")
  image=image.resize((60,60),Image.ANTIALIAS)
  powerImage=Tkinter.Canvas(self,width=60,height=60)
  powerImage.grid(column=1,row=0)
  img=ImageTk.PhotoImage(image)
  powerImage.create_image(60,60,image=img,anchor=Tkinter.NW)
  </code></pre>
  
  <p>But all I get is a blank white box with the dimensions <code>60x60</code>. I don't get any errors and am at the end of my debugging abilities.</p>
  
  <p>I tried changing the position parameter of the <code>create_image</code> function to <code>30x30</code> and <code>60x60</code> just in case the image was just displayed outside of the canvas but I still get just a white box. I also tried using a <code>gif</code> version of the image instead off <code>png</code> which didn't change anything.</p>
  
  <p>So my question is, why is my image not displaying, and if my image is not displaying why is the canvas white, shouldn't an empty canvas be transparent ?</p>
  
  <p>thanks in advance</p>