joining logic for photo tags and photo users