usage of img.src instead of innerHTML