Hi, if your goals is to create the bpmn2 xml file in a web editor you should use the process designer, which will allow you to graphically build your process and in the back it will generate the bpmn2 xml file. It will also allow you to export the diagram as a PNG/SVG file, then converting it to a JPG/BMP should be straight forward.
Cheers