yoimg_register_module function updated