Not perfectly, but watermarking images in ways that survive re-encoding is far from impossible or unknown.