XF 1.5 How to add a image to my sidebar with a link

Hello Xenforo community!

I am wondering how I can add a Image to my sidebar with web links in the image. So when my users click the pictures it automatically takes them to that URL.
Alright everyone I figured out my problem. Here's the code!

<a href="URL You Want"><img src="Path To Image"/></a>
I added this to Templates / Sidebar_Online_Users for the position I wanted!

If you have any questions feel free to ask
I just came across this, and it looks like something I would like to add.

Suppose I wanted this code to take it to an existing Thread. It would be easy enough find the URL to that Thread, but what would be the Path to the Image that is existing in the Thread if it was uploaded and not hotlinked?