Code / command to get a single PNG image

Hello folks,

Is there an easy way of retrieving a PNG image from the Milk V DUO S camera?

I have been taking a look to sample_sensor_test command but it only stores .raw and .yuv files which needs conversions. I would like to store a .png or .jpeg.