When I use the following method from your examples to try to make a stencil file with PNG images:
public static Master createMaster(final int masterId, final String name, final java.awt.Image image) throws Exception {
…...vtx”, SaveFileFormat.VTX); // diagram.save(dataDir...save("build/output/template_Out.vtx", SaveFileFormat.VTX); } // create master...