SVG offers the possibility to display images within an SVG viewer by either referencing to the image file or – wich makes the SVG file standalone – embeding the image source within the SVG file.
Read more http://circle.ch/projects/2/9.
For the other way round, please have a look at the Batik project of ASF; http://xml.apache.org/batik.