Check weather two images are duplicate or not