Camera generic - Set still_image_url to local file?

Hello. I’ve successfully set up a Yi Camera using the generic platform with a rtsp stream. However, the camera doesn’t provide a still image so I’m thinking about just using a fixed jpg located in my local computer (e.g. /home/hass/img/cam.jpg). Is that possible? If so, how can I set a local file as the still_image_url?

I’ve tried with /home/hass/img/cam.jpg and file:///home/hass/img/cam.jpg with no success

My camera config is just:

camera:
  - platform: generic
    name: yicamera
    still_image_url: [HERE I WANT TO SET A LOCAL FILE]
    stream_source: rtsp://192.168.1.101:554/ch0_0.h264

Thanks for your help!