Custom Texture based on the entity Name

I am wondering if there is a way to have a different texture applied to a creature, i.e. the ender dragon, when they are summoned. Can i do this with custom names, or would it be with nbt?

Continue to help post