create line_one_pixel in patternfn.py