mediaTracker.removeImage(img);
mediaTracker.removeImage(img);*/
    private Image unmarshalImage(Node t) {        Image img = null;        String source = getAttributeValue(t, "source");                if (source != null) {            img = Toolkit.getDefaultToolkit().createImage(xmlPath + source);        } else {            NodeList nl = t.getChildNodes();            for (int i = 0; i < nl.getLength(); i++) {                Node n = nl.item(i);                if (n.getNodeName().equals("data")) {                    Node cdata = n.getChildNodes().item(0);                    String sdata = cdata.getNodeValue();                    img = ImageHelper.bytesToImage(                            Base64.decode(sdata.trim().toCharArray()));                    break;                }            }        }        // Wait for the image to be ready        mediaTracker.addImage(img, 0);        try {            mediaTracker.waitForID(0);        }        catch (InterruptedException ie) {            System.err.println(ie);        }        mediaTracker.removeImage(img);        /*        if (getAttributeValue(t, "set") != null) {            TileSet ts = (TileSet)map.getTilesets().get(                    Integer.parseInt(getAttributeValue(t, "set")));            if (ts != null) {                ts.addImage(img);            }        }        */                return img;    }