Fix generate image labels warning