engine: image: intersect: fix intersect returning wrong values with imag...

...e as input