State filter for an image in a card

Hi @ all, I would make a card with 2 sensors:

  1. Tracker person
  2. Smartphone Battery sensor
    The picture entity may will change (by status home / not_home) by a “state_filter” in gray-scale,
    I would show a
  3. State label person on bottom left of card,
  4. Label and icon status (icon and percentage) of battery sensor on bottom left (as showed in picture)
    So:
    I can’t use picture glance,
    I can’t use picture entity,
    I don’t know if I can use picture elements, but how change state filter of image in a picture elements?
    Many thanks 4 help :grin:. Screenshot_20220305_081018_edit_300342904110420

solved by picture-elements cards.
thanks anyway.
Cattura