fix img core.php