Add a Mr labeled element after all Bitmap nodes

Hello. I've been trying to find a way to add a mr-labeled-element after a bitmap slot to all our materials.

Ideally it'd place the bitmap name into the added label, then add the labels aquired name to the render element rollout.

A further option might be to ignore duplicates or not
and
Look for existing labels and add render elements with names.

I really dont know know where to start with this so any help and pointers is much appreciated.

Robert