Image not loading in server

Hi! I’m using atom as a text editor for my coursework in p5.js on kadenze. It’s been working great so far but this unit requires loading an image. The image is in my project folder, but does not load. I’ve tried the same code in processing and it works fine. Do I need to install a library or change the html code?
Please help! I would love to continue using atom and really want to learn.

Many thanks in advance.

P5.js looks like an interesting project. If testing HTML pages I use the package php-server which gives a report if files are not found.

After installing by command apm install php-server, select say index.html in tree-view project, right click, PHP Server here. Shows result in browser (localhost:8000) and also giving a report inside Atom editor.