// set image to browser memory
const blob=await fetch('file_path').then(res=>res.blob());
// create url object
const urlCreator = window.URL || window.webkitURL;
// render image
document.querySelector('selector').setAttribute('src', urlCreator.createObjectURL(blob));