Unstable background image (keeps falling out in sessions)

Tags: #<Tag:0x00007f73997f73a8> #<Tag:0x00007f73997f7268>
buttons:
  locate: true
  start: true
  stop: true
entity: vacuum.xiaomi_vacuum_cleaner
icons:
  start: 'mdi:play'
  stop: 'mdi:stop'
image: /local/img/vacuum.png
labels:
  battery: Batteri
  filter: Filter
  main_brush: Hovedbørste
  mode: Modus
  sensor: Trappesensorer
  side_brush: Sidebørste
  status: Status
name: Olga
type: 'custom:xiaomi-vacuum-card'
vendor: xiaomi

This configuration of my xiaomi vacuumcleaner card works, but only sometimes. On some pageloads the background does not load. And i cant figure out why, any ideas?