mkimage: Use generic code for showing an 'image type' error