Featured Image Navigation

I’ve found it handy on several occasions to organise navigation from a parent page to its children using featured images. The idea is that the parent displays the featured images from the children and those images are used for navigation. The code varies from case to case but usually looks something like this: