Change Background Image Using Picture Elements

Hi All,
Is there anyway of getting the picture elements card to change the background image like you can with the picture entity card? I want a different image to display when device tracking information is home or away, but want to use the picture elements card so I can have an additional sensor as well (battery %).
Many thanks!