How to change button image in list view

Hello,

I have a problem, I want to change the image of the button in the existing list view. I know the slot index that I want to change, but I don’t understand how to change it?

What I know or think is that this is how I can get the object of the right slot like this:
listview

…and this is how I would change the image of the button:

what I don’t know is how to combine these two things :frowning:

Weaponsslots is listview and SlotThumb is one list entry