Print button

I wondered if its possible to make a button, that prints a .jpg from the server. If it is possible that what script should be added to the button?

Thanx