[PATCH 4/5] qemu: Split of code related to handling of the save image file