Attaching photo to persistent notification

Hello,

I am trying to figure out how to attach a photo to a persistent notification. I would like to send a notification when my front door camera detects a person with an image attached.

I have it working but for some reason it always sends the same photo. It’s like it is cached somewhere and doesn’t update the image even though a new image has been created.

Here’s the code that creates the snapshot:

metadata: {}
data:
  filename: /config/www/images/front_door/front-door-person.jpg
target:
  entity_id: camera.doorbell_clear
action: camera.snapshot

Running that creates this image (note the time: 08:26):

When I run this:

alias: Send a notification
action: notify.persistent_notification
data:
  message: >-
    Person Detected<p> ![Front Door
    Motion](/local/images/front_door/front-door-person.jpg)
  title: Front Door

It always sends this file (note time: 08:14):

If I obtain the link from the image in the notification it displays the old file until I refresh the browser then it shows the correct updated photo.

Is there a way to send the updated file via the notification?

I’d like the file to overwrite so I only have the last version of the photo only.

Thanks in advance.