It can also write the image to an ordinary file, thereby avoiding potential race issues in freeing memory when preparing to suspend.
To prevent memory issues during system suspension, the program can save the image to a regular file instead of directly freeing it.