Reduce possiblity of detecting white rectangles within barcodes

Modified WhiteRectangleDetector to continue expanding the rectangle until each side has passed through at least one black point.