title: ImageTk.PhotoImage Crash
body: <p>I have been trying to resize images using PIL then display them using Tkinter, but the program has been crashing and I've isolated the problem to the second line below:</p>
  
  <pre><code>image = Image.open("0.gif")
  photo = ImageTk.PhotoImage(image)
  </code></pre>
  
  <p>And this is my imports:</p>
  
  <pre><code>from Tkinter import * 
  from PIL import Image, ImageTk 
  </code></pre>
  
  <p>I've read around that Tk must be initialized and I do this in the program before it reaches those lines in the program. So I don't know what it is. </p>
  
  <p>I am running OSX and python 2.7 interpreter on eclipse (using PyDev). </p>
  
  <p>UPDATE:</p>
  
  <p>Error message on eclipse says: </p>
  
  <pre><code>STACK: Stack after current is in use
  </code></pre>