added isDrawingSegmentActive and isDrawingSegmentPersisted helper functions in drawing module