would be possible to include auto-backup of existing .img ? this shall happen before write (e.g. on shutdown) in case the write fails or is corrupt, then the previous 'copy is used' also allow user to define number of backups with FIFO rotation each backup has unique name with timestamp to avoid of any renames or overwrite thanks for considering