Now the image shows up in a pygame window. Still tons of spaghetti code and the window hangs.