Added option to render only svg element without xml and doctype