https://tutorial.eyehunts.com/js/dynamically-set-image-src-using-javascript-simple-html-example-code/
Dynamically set image src using JavaScript | Simple HTML Example code