Using rpc to save images from OpenMV Purethermal board

I am trying to use the rpc examples (specifically this one from the github rpc_image_transfer_jpg_as_the_controller_device.py) to save jpg images to my pc. I put the code on the board as main.py and then can run it fine but i don’t get any images just a black screen and zero frame rate. Does anyone know how to fix this issue? I want to save the images from the flir lepton but i cannot get images from the OV5640 either.

So i have solved this issue but do i edit the code on my computer or the main.py file to save the image as a jpg file on my pc? Also do i put my thermal imaging code in the main.py file?