A photoelectric diameter gauge utilizing the image sensor