Change picture based on state of light

I’m very new with HA coming from Hubitat and I’m having an issue changing an image based on the state of a light bulb
bulb off - picture a
bulb on - picture b

type: image
image: local/bulb off.png
entity: light.stairs_main_lights
tap_action:
action: toggle
state_image: true
‘on’: local/bulb on color.png
‘off’: local/bulb off.png
style:
top: 30%
left: 11%
width: 5%

I know it’s probably something simple but I just can’t figure it out.
TIA

You need to surround your code with 3 backticks (```) for it to format correctly.

I’m guessing you’re using a Picture Elements card, in which case the type should be “picture-elements”, not “image”.

The link I included shows the format of “state_image” - it does not have “true” after it. Assuming you’ve got ‘on’ indented below it, that would make it invalid YAML because “x: y” cannot have child (indented) lines below it, whereas “x:” does.

There may be other indenting issues, but without proper formatting it is impossible to tell.