Numeric condition image change

Is it possible to change the image based on the numeric status of an identity, eg over 50 degrees?
this does not work inside the manual card:
condition:
condition: and
conditions:
- condition: state
entity_id: ‘device_tracker.mattia’
state: ‘home’
- condition: numeric_state
entity_id: ‘sensor.luminosita_esterna’
below: 50
elements:
- type: image
image: /local/pianta3d/meteo/Luna notte nuvoloso2.jpg
style:
left: 11%
top: 10%
width: 15%