You are correct, you need to get a reference to the widget you want to change the image on. That is why you are getting those red errors, it needs a target to know where that variable exists. The easiest way is when you create the widget, it returns a reference that you can promote to a variable.