add checkbox for draw pixels
refactor: find straight path now member of the contour class