And it gets even worse if you do not actually want to check for exact pixel-wise equality, because then you would not need to check for equality but instead for similarity which, in particular for images, is a topic on its own that easily fills several books...