How to switch images on a widget

If you look closely on the top screenshot the image is part of the widget’s brush. So on your widget use the Set Brush event.