ImageRegistry(){
      
        imageHash = new HashMap<>();
        
    try
      {
    String path = "Data//Images//"; 
 
        String files;
        File folder = new File(path);
        File[] listOfFiles = folder.listFiles(); 
 
        List<String> tlist = new ArrayList<>();
        
        for (int i = 0; i < listOfFiles.length; i++) 
        {
 
            if (listOfFiles[i].isFile()) 
            {
            files = listOfFiles[i].getName();
            if (files.endsWith(".png") || files.endsWith(".png"))
                {
            files = files.substring(0, files.length()-4);
            addImage(files);
                }
            }
        }
        
       addImage("cursor"); 
        
     }catch(Exception e){
         Logger.getLogger(ImageRegistry.class.getName()).log(Level.SEVERE, null, e);
        System.exit(0);
                        }
    
    
    
        }