Maybe you can use the wpc_image.erl as reference. Take a look at make_image/4.
I think you will bind 'dialog_preview' to process the parameters and get the visual feedback.
I think you will bind 'dialog_preview' to process the parameters and get the visual feedback.