Speed up draw_seg by storing mask
Merge pull request #26 from jni/drawseg-speed

Speed up draw_seg by storing mask