[DomCrawler] Fixed incorrect handling of image inputs