issue #933 - removed image when calculating object overlap + speedup + bug fix + tests