Jigsaw Search In Image

In my previous article, I compared two images of the same size pixel by pixel. To further enhance its functionality, I now search for a small image (I’m going to call it a jigsaw) in the big image pixel by pixel and return the coordinates of the top left corner pixel location.