How to get animation icon in a script

So I want to know how to get an animation’s icon in roblox studio. By animation icon, i mean this icon from the Roblox website →


. Is there a way to get that in a script and show it in an image label/button?

I am positive that there is no way to get it’s icon into a script. Maybe use a viewport frame? Or just take a screenie of all the animations to be used?

well, i’m not sure if this would work but you could probably do something similar: