Labeling the image data