Let's say you've put an image in your main repository in folder img.
You want to use relative paths in your image tag.
linking to it in the github readme.md:

linking to it in a github issue comment:
