fixed bugs for the tagging of images

as titile