How to get the template from a shirt's id

The title says it all, how can I get a shirt’s image from a shirt id?

Do you want to do this with a script? Or just in general

With a script.

I used a HumanoidDescription and it worked out fine.