send cropped image with kafka plugin

Hi,
I am using deep-stream to run detector on the image, and than I want to send the cropped images with your kafka plugin.
I see that in the plugin I can send only metadata, and that the image is not passed on.
how can I do that?
thanks

You can modify sources/gst-plugins/gst-nvmsgconv/gstnvmsgconv.c

gst_nvmsgconv_transform_ip()

Get yuv buffer and metadata, then create NvDsEventMsgMeta
I think cropped image can be saved in NvDsEventMsgMeta->extMsg