The Shroud has no paint pigment penetrating the linen fibers. Something else formed the image.
There exist some sunscreens which are volatile, e.g. cinnamate esters. So they protect against exposure, and then evaporate away completely. (After, say, 500 years to be sure to get every last drop.)