update img8.c to avoid mm_log()