Look at the URL of your image. For example, the URL for the image you want to link to is:
//www.dpchallenge.com/image.php?IMAGE_ID=501046
The number on the end is all you'll need: 501046
Now look at the icons just above the box where you type in your message. See the second one from the right, that looks like two little rectangles? Click it, paste in the number from the URL and hit "OK."