changes links of images in advanced_tree=true to .png