Use monitor app to show if im home or not?

So i finally got my monitor script to work from some awesome help and troubleshooting, now i’d like to incorporate it into a picture-glance
the output of sensor.home_occupany_confide_of_9ce ect below is a number, is there a way to turn this into a picture glace? if number is greater then 10 i am home, if i a home show the home image?
this is the script i am referencing: [monitor] Reliable, Multi-User, Distributed Bluetooth Occupancy/Presence Detection

    cards:
      - type: picture-glance
        title: David
        entities:
          -  sensor.home_occupancy_confidence_of_9ce65e0b4bc9
        state_image:
          "home": /local/lovelace/david.png