Your right sorry I didn’t know and I never used projects so I just assumed it would work. Just another reason why Codepen is totally outdated (I’m surprised they have not gone out of business, to be honest). Check out CodeSandbox it is much more like a local dev environment using VS Code, and they let you upload files (with some total size restrictions).
Or you can use some hosts (E.g. Github) and upload the image.