Cooldown effect for UI elements

Trying to have a highlight image on the UI that has a cooldown timer. Can I make the timer apart of how much of the image is shown?