Some optimizations

Some optimization, searching for images in smaller areas, by detecting
first the overview's position and only scanning for gates and stations
in the area under overview as opposed to all the window in older
versions