prova con

var myvar=document.getElementsByTagName('body')[0].style.backgroundImage;