Is there a way to save the output result of PLP-Protocol as an image?

I recently created a protocol to generate barcodes (attached).
I would like to store this barcode in JobDir (for example, "\$(JobDir)/code.png").
Do you have any good approaches?
If anyone knows, could you please give me some advice?