add a c version make-img