private int computeWidth(TPoint[] points) {
		int maxX = points[0].x;  
		int minX = points[0].x;
		for (int i = 1; i < points.length; i++) {
			TPoint currentPoint = points[i];
			if (currentPoint.x > maxX) maxX = currentPoint.x;
			if (currentPoint.x < minX) minX = currentPoint.x;			
		}
		// + 1 is to account for differences in coordinates and actual width
		int width = maxX - minX + 1;
		return width;
	}