public static Image buildImage(String pathImage) {

		FileInputStream in = null;
		Image image = null;
		try {
			in = new FileInputStream(pathImage);
			FileChannel channel = in.getChannel();
			ByteBuffer buffer = ByteBuffer.allocate((int) channel.size());
			channel.read(buffer);
			image = ImageViewer.load(buffer.array());
		} catch (Exception ex) {
			Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE,
					null, ex);
		} finally {
			try {
				in.close();
			} catch (IOException ex) {
				Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE,
						null, ex);
			}
		}
		return image;

	}