document.body.appendChild(div);
var myImg = new Image(); document.body.insertBefore(myImg, div);
div.parentNode.removeChild(div);