Click and load a new image, click again and new image will load

how do you make something like when you click a button, an image will be loaded. click another button and the recent image will be replaced by a new image.