scripts for drawing line mask from given position and angle