It won't load an image if you give it's source as something that doesn't exist as a path, i.e. "2.jpg?+random number".
Try just just using img.src = "2.jpg" in the function, it should cause it to load that picture. If that works, try restating the source as img src="radar.jpg", edit the picture and save it, then click the image to call the function.