I have a while loop that continues for the set amount of iterations and in each iteration a different image is generated. What I am trying to do is to create the image, display it in a window, and then repeat the loop over.

The problem I am having is I am using PIL to generate an image which you can see below:

def make_image(self , filename):
image = Image.new("RGB" , (self.map_width , self.map_height ))...