User blog:Leet-Pete/How do I add photos to templates?

Title says it all. I tried searching for this, but I couldn't find an explanation. Would be easy if for instance the photos uploaded to the wiki had a URL we could copy + paste. However, for all I know, there might be an easy way of doing it.