Add images and parents to pages.