FInally got rectangle growth toward darkest area.
Box now grows in the correct direction towards the darkest quadrant.
Fixed problem where quadrants III and IV were reversed.  Also now grow to max median threshold instead of min median threshold.