public static Image resizeImage(int width, int height, String path) {
            Image image = null;
            try {
                    image = ImageIO.read(Utilities.class.getClassLoader().getResource(path));
                    image = image.getScaledInstance(width, height, Image.SCALE_SMOOTH);
            } catch(IOException e) {
            	System.out.println("Error occurred while resizing image");
            }
            return image;
    }