you can’t use an image in your local machine in an online editor
you need to host it somewhere online - to upload it in codepen you need the premium subscription, but you can use a service specifically for hosting images, or use a different online editor that supports uploading images (ex. repl.it)