fixed bug in labeling to img node