PHP Force Image Refresh

<img src="imagename.png?r=<?echo(rand());?>"> //produces a random number in url
Poised Penguin