public Image getImage(String path)
  {
       Image tempImage = null;
     try
     {
           URL imageURL = LoadImage.class.getResource(path);
            tempImage = Toolkit.getDefaultToolkit().getImage(imageURL);
     }
       catch (Exception e)
     {
           System.out.println("An error occured - " + e.getMessage());
     }
       return tempImage;
   }