Using Inkscape, you can create images and save them as .svg. When you produce a PDF output, the SVG image will be included. When you produce an HTML output, the SVG image will be automatically converted to a png image if the browser does not support SVG.