mkimage: fix generation of FIT image