Replacing an image depending on a value

Im going to use pie charts to display time. Ive tried to place all the images on top of eachother with display sometimes, but it doesnt align if i do that. There are 4 images in total and im using a custom list. Any suggestions?