private void writeEdges(int pixels[]) {
		
		if (edgesImage == null) {
			edgesImage = new BufferedImage(width, height,
					BufferedImage.TYPE_INT_ARGB);
		}
		edgesImage.getWritableTile(0, 0).setDataElements(0, 0, width, height,
				pixels);
	}