comparing all images agianst the given image