As Mr.Zaibshah said, How can you get the object if Image directly, You have to get Element of Image And set The Source Address..
var img=document.getElementById("img1")
And while setting image Src, How you get The Address of image, And where Does the Images folder located(if it is within your project then "/images/image1.jpg").