public ImagePanel() {
       try {                
          image = ImageIO.read(new File("src/snake.bmp"));   // for IDE
         //image = ImageIO.read(this.getClass().getResource("snake.bmp"));      // for Jar'archive 
       } catch (IOException ex) {
           System.out.print(ex);
       }
    }