Fix display of photos.
Need default thumb here.
Fix the ancestors' logic.
More work on fix_ascendants.

Would somebody please think of the children.