Use style.backgroundImage instead of style["background-image"]