clean up and add fetch-img.php