show image thumbnail of parent page

Show the image thumbnail of a wordpress parent page and generate the output with a function.

Other relevant snippets: