It depends if the object that touches the imagepoint of the other is square. If it's square you could use distance, otherwise you have to distinguish between height and width.
In this example if the green rectangle overlaps the purple one on the upper left (Imagepoint1) you get an overlap.
https://drive.google.com/file/d/0B5FlDY ... sp=sharing
Please feel free to ask is something unclear.