Update xml.php and img.php