image front detection by image processing (restriction: progressing vs time along x axis, front should have same position along y axis)