Please put the dir "new-img" in add-new-images.html img.src = `add-new-images**/new-img/**${size}/${name}`;