I want to use an image within a comment (not within a question).
How does it work?
That's not possible. You can only post a link to a picture.
You can paste the image first in the editor of an answer, then copy the link before saving the answer, discard the answer and insert the link to the image in the comment.