Is there a way to insert an image into an ImageJ2 script GUI?



I’d like to display an image in the user interface window generated by an ImageJ2-style script. It’s possible to do this in an ImageJ1-style GenericDialog, but I’d rather do things the newer way if possible – any hints on how to do this?

Additionally, is it possible for such an image in a script-generated GUI to be interactive, i.e., be able to draw/edit regions of interest? Basically, I’m looking for a way of coding up the example shown in here using the new scripting paradigm.

Any hints are most appreciated.