My issue is that I am having problems loading locally hosted images on to the canvas. I have tried hosting the code on a web server, using XAMPP, and locally, and the LightB
You were so close!
You need to put base_image.src after the base_image.onload function:
base_image.src
base_image.onload