fix mkimage