Fixed edge case so that if every median in a row or column is 255 the middle gets picked for the initial start position.
Added option for offset to be added to grow till median function.
Modified GetSmallestMedian so it only searches the middle 4/5th's of the picture.
Progress building box.