Are you saying you would get the image, detect the ad in the image, then regenerate the HTML without the ad based on where it was located in the image?
You don’t need to regenerate, insert a DOM element to obscure it.
You don’t need to regenerate, insert a DOM element to obscure it.