deselectedTag only has to be declared if we're in InputSingleImageConfigMode.