Insert a raster image (PNG/JPG) into an SVG document, replacing a target element
insert_image(doc, label, image_file, dpi = 150)The modified SVG document (doc) with the image added and the target removed
An xml2 SVG document
The label of the target element to be replaced
Path to the PNG or JPG image to be inserted
The resolution to use when interpreting pixel units (in the template svg)