How do I put in pictures in a widget?

This tutorial shows you how you make a widget (it’s the hattrick markup language widget) where you can put in your own picture: