Factored out find_simple_bounding_box and adjust_y_from_thresholding