image icon on pages rather than the default page icon

I need a plugin that checks if the page the user made (in a group) has a picture (or youtube vid) and if it has, make that picture its icon,  instead of the default paper icon. 

Only do this on the very top parent page, child pages and its further child pages does not need to have its default icon change. tnx.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking