tools: imx8image: flatten container header only when creating container