Fix corrupted image file

In the `Async_CaptureCb` the node buffer is generated by moving data from a previously deallocated memory area.
Deallocation is done by `gp_file_free` which calls `free` on the `file->data` pointer.
This causes `segmentation fault` or fills the buffer with wrong data.

This patch also tested on a Raspberry Pi, should fix the issue.