private static BufferedImage mergeNearestWhitePoints(BufferedImage img) {
		Graphics2D g = img.createGraphics();
		g.setColor(Color.WHITE);

		for (int k = 0; k < 20; k++) {
			for (int i = 0; i < img.getWidth() - 1; i++) {
				for (int j = 0; j < img.getHeight() - 1; j++) {
					if (img.getRGB(i, j) == -1) {
						Vector<Integer> vec = checkNeighbourhood(img, i, j, 2);

						if (vec.size() == 2) {
							g.drawLine(i, j, vec.get(0), vec.get(1));
						}
					}
				}
			}
		}
		return img;
	}