How to save object to jpg file in Deepstream-test5-app

hello, in this post How to save frame as jpg and send the filename to kafka in deepstream 5.0 deepstream_test5 has an user say

dsexample is not before the msgconv by default, so you can’t receive the frame_image. You can move dsexample bin to the right position.

So how to do that @Fiona.Chen, help me