Really??
That seems like an awfully over the top method.
I don't see how else it could be done. There's no magic way of seeing if the pixels match, without actually looking at them all.
Could this be done in real time, such as simply checking the image handles?
Image handles are simply the pointers to the struct in mem that's used by blitz to handle the images. Realtime? Depends on how often you want to compare images, how big they are etc.
P.S. What do you need to do this for, exactly? Are the images created in-code or loaded in?