fix rm mkimage