Embedding a picture in a form

Hi!

I want to embedd a picture in a form, but want to be able to parse out the pic name from the URL and then load the picture. I have taken care of parsing the pic name out of URL, but dont know how to load a pic using variables.

Thanks.