I agree with Sergey and Dave - you are going about this the wrong way. I am not sure exactly what you are trying to accomplish, but I think you would be better off inserting an <image> tag in your SVG and either link to the image file or possibly base64 encoding the image and embedding that in your SVG image tag.
Below you should be able see two versions of a Bob image. One is linking to the online image, the other is embedding a base64 version of the same image.
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="300px" height="140px">
[<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="300px" height="140px"><image height="125" width="125" x="10" y="10" xlink:href="http://www.codeproject.com/App_Themes/CodeProject/Img/logo125x125.gif"/></svg>]
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="300px" height="140px">
[To see the base64 embedded version, right-click on the image and select "Inspect Element"]
Here are a few good SVG reference links I have used:
An SVG Primer for Today's Browsers[
^]
Adding SVG to a webpage[
^]
SVG Tutorial - Jenkov[
^]
I used this online converter to generate the base64 version of the Bob image:
http://webcodertools.com/imagetobase64converter/Create[
^]
Soren Madsen