moved call to ImageOverlap to imad() from main()