[PATCH u-boot-marvell 23/29] tools: kwbimage: Refactor kwbimage header size determination