Remove boundary check routines.

Make nMaxSegs of FastImgSeg class as member variable to share drawing procedures.