fixed favorite image + now it's using DOMDocument