CloudFlare resizes the image, and encodes it into a different format, depending on the platform it is loaded on.
I'm not arguing against your idea, I'm all for security, I just don't think most image hosts make a bit-perfect guarantee. Mine doesn't. It doesn't store the images in their original format even. Is the hash created after upload? Will this require a special API for hosts?
Here is specific information on CloudFlare.