You are not event trying to use the image objects you create.
They are not related to the images you prescribe via your XAML. If you really want to do it this way, you should give the names (by adding XML attributes
Name
to your XAML, so you could have reference to those objects generated via XAML, to use them in your code, through the named references). This way, you could use your *.PNG files as URLs via this property:
https://msdn.microsoft.com/en-us/library/system.windows.controls.image.baseuri%28v=vs.110%29.aspx[
^].
This is just the advice how could your quickly fix your application the way you envisioned it, but hardly and advice on how you develop it in a reasonable way. You generally do bad things. Form example, you hard-code image size (100), worse, you do it separately in XAML and code behind. How it possibly could be made supportable? And what if your URLs contain images of some different sizes? And so on… So, exact advice could be given if you explained what you really want to achieve with all that.
—SA