add debug info in task refresh_images