[PATCH 24/34] bootstd: Update bootmeth_alloc_file() to record images