[PATCH u-boot-marvell v3 24/39] tools: kwbimage: Refactor kwbimage header size determination