I would like to export the exact view of agents layout (including their shapes and colors) into a vector image file format such as EPS, PDF, SVG,...

Is there any way to do that without vectorizing the generated PNG files with another application?

**EDIT 1:** 
I tried to write an extension as Seth recommended, but the generated image is as follows:
[Generated Image of the extension](http://i.stack.imgur.com/I1nFd.png)

**EDIT 2:**
The problem was with the vector library I was using. Changing the library, the extension works like a charm!