Remove broken/invalid images and set absolute path to web resources.