mkimage: simplify.