How to make widget images change with health?

It works! This is what I did to get it working! Thank you!