private static JMenuItem saveImage( final UmlDiagramView view ){
		JMenuItem menuItem = new JMenuItem( "Save image" );
		menuItem.addActionListener( new ActionListener() {
			@Override
			public void actionPerformed( ActionEvent e ) {
				Path path = Paths.get( "test-image.png" );
				int index = 1;
				while( Files.exists( path ) ){
					path = Paths.get( "test-image-" + (index++) + ".png" );
				}
				
				BufferedImage image = view.paintImage();
				try {
					ImageIO.write( image, "png", path.toFile() );
				} catch( IOException e1 ) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
			}
		} );
		return menuItem;
	}