Drawn rectangle is not available on encoded frame

OSD has done that when you add the display meta

you just need to install a probe on the osd src pad, and save the image in the probe, refer deepstream_image_meta_test.c