Firebase button image change

I have 4 buttons, they send 1 or 0 information to firebase with different names. When I first open the application, I want to get the data from the firebase and be changed as 1 or 0 the picture of the buttons (the picture also changes when the buttons are pressed)

Please explain more clearly what it is you are trying to achieve?

I wrote in English it would be more descriptive