public static  ImageIcon loadIcon(String src)
    {
        String name = src.replaceAll("http://west-it.webs.com/spells/","");
        if (imageTable.containsKey(src))
        {
            return new ImageIcon(imageTable.get(src));
        }
        BufferedImage toReturn;
                while (true)
                {
//                    System.out.println(src);
            try {
                    //bimage = ImageIO.read(new URL("http://west-it.webs.com/AgedPaper.png"));
                    downloadResource(dir+"images"+File.separator+name,src);
            } 
            catch (Exception ex) 
            {
                //Logger.getLogger(APPLET.class.getName()).log(Level.SEVERE, null, ex);
            }
            try 
            {
                toReturn = (BufferedImage)(ImageIO.read(new File(dir+"images"+File.separator+name)));
                imageTable.put(name, toReturn);
                return new ImageIcon(toReturn);
            } 
            catch (IOException ex)
            {
                //Logger.getLogger(APPLET.class.getName()).log(Level.SEVERE, null, ex);
            }
                }
    }