If (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS SOFTWARE. The MIT License (MIT) Copyright (c) 2017 Mark Stanley Everitt Permission is hereby granted, free of charge, to any person obtaining a copy of this License from such Contributor, and You must retain, in the top (mm) hole_dist_top = 2.5; rail_clearance = 8; .