Well, SVG, while actually just being XML, supports embedded pngs/jpegs and can be exported to most raster-graphics formats from the command line.
Not sure if it's what you're looking for, but personally I love the possibility of being able to scale stuff as I see fit.