Template image

Hi, someone can help me to template image?
I want to use this string

type: picture
image: /local/{{ states('input_text.name') }}.jpg
action: none
action: none

Template input_text.name is the name of the file, without extension.
In the dev tool the results it’s correct but the card not showing any image

Most core Dashboard cards do not accept templates. As shown in the Picture Card Docs the image variable accepts only a string as a value, not a template.

Yes, it’s about three days that I read documents and forum.
Now i want to find a custom component for my situation