changed script to generate svg instead of pdf