fix up boot_flash_from_image