added preliminary hierarchical tag support for pictures