fix a bug in img_info_task