Capture and Save Image using Arduino Nano Ble 33 Sense and OV7675

Hello, I am trying to capture and save a still image using Arduino Nano Ble 33 sense and OV7675 camera module. I only manage to capture the image (using Harvard TinyMlx example test_camera and CameraCapture form Arduino_OV767x)
and printed it as HEX string in serial.
Is it possible to save it as an image file (e.g. jpg, png) ?? The image then will be sent to an object detection model using Node-Red.
I found python code to convert Hex code to image, but it has to be in a certain array size. I found another Java code but It did not work with the Nano.
Tested Codes
Pyhthon code

Java Code