log thread states in image_unit