public static Image loadImage(String path) {
            URL url = Utilities.class.getClassLoader().getResource(path);
            Image image = null;
            try {
                    image = ImageIO.read(url);
            } catch (IOException e) {
                    System.out.println("Error occurred while loading image");
            }
            return image;
    }