State Based Person Image in Glance Card

I am currently using a glance card with person entities to show who is home. At the moment, I have the profile photo with the state shown below, but would like to see if I can change so that when someone is not home, they image is greyed out.

What would be the best way to achieve this?