13a14,14 > import javax.swing.*; 118a120,128 > public Image loadImage(String filename, boolean waitForLoad){ > Image image = loadImage(filename); > if (image!=null && waitForLoad){ > ImageIcon icon = new ImageIcon(image); > image = icon.getImage(); //this forces the wait to happen > } > return image; > } >