tbl.innerHTML="<img src=../../temp/"+name1+".png />";

DONT FORGET that the img closes like that