Create a table with three images like so:

Write javascript code so that if one image is clicked and then another image is clicked, the 2 images swap.