How do you customize the GUI?

I want to make an image in photoshop, lets say for the design of the healthbar. How would I import that image and code it to where the image will scale up or down based off how much damage the player has taken?

Yes, I am new to this XD

Maybe this helps: