A bonafide CSS trick by Franklin Ta. Position the images on top of each other at 50% opacity and inverted colors. Or, as Bennett Feely pointed out, use background-blend-mode: difference;
if they are background images.
Image Diffing in CSS
DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit!