Changed Lasso region detection algorithm to a scanline interval algorithm