I found a solution:
showImage(image:any) {
let myImage1 = <HTMLElement> document.getElementById("image1"),
style = myImage1?.style || window.getComputedStyle(myImage1, "false"),
bi = style.backgroundImage.slice(4, -1).replace(/"/g, "");
//console.log(bi);
window.open(bi,"_blank");
}