Can I create a picture-card from an attribute

lovelace
Tags: #<Tag:0x00007fd075adf5a0>

#1

Hey guys.
the picture card like this :

type: picture
image: 'https://www.home-assistant.io/images/merchandise/shirt-frontpage.png'

Now, I create a restful sensor. and the sensor have a picture link attribute, I want to show this picture in my lovelace page.
Is there any way to do like this?

type: picture
image: {{ states.XXX.attribute.imageLink }}

thanks a lot!