update image links in js