Auto loading images into widget on every page (1 post)

On a page named test22 load a images named test22.jpg into a widget and do the same to every page?

I could do it manually adding image to every page apart, but having many pages it would take ages to make it work that every page would get it's own image. I'm wondering if there is a way to do it automatically.