public static void main(String[] args) {
		
		int[] pixels = null;
		PicExtractor p = new PicExtractor();
		
		try {
			pixels = p.getImagePixels(imagepath, resolution, resolution);
			for(int i = 0; i < pixels.length; i++){
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		Maze m = new Maze(pixels);
		SvgGenerator g = new SvgGenerator(m);
		g.generate("maze9.svg");

		 // Create a frame
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        // Add a component with a custom paint method
        frame.getContentPane().add(new MazeDrawer(m));

        // Display the frame
        int frameWidth = 1000;
        int frameHeight = 1000;
        frame.setSize(frameWidth, frameHeight);
        frame.setVisible(true);
	}