for (Enumeration e = imageCache.keys(); e.hasMoreElements();) { Object key = e.nextElement(); if (imageCache.get(key) == img) { imageCache.remove(key); return; } }
    public void removeImage(Object id) {    	//System.out.println(name+".removeImage(Object): " + id);        imageCache.remove(images.get(id));        images.remove(id);    }