update image locations and calling of index.php