Ok that makes sense but I still dont get the PortraitFrameMixin:SetPortraitToAsset() part.
I was doing a bit of research but couldn't find much about replacing/changing that for so many different parts.
I will probably just do the textcoords for possible icons and resizing the other ones because for lua its obv hard where to start and too much frames involved which is a bit to far for my bad knowledge.
Thank you for the links