Added check to initialize tags, when only categorized tags are available for image