add the showPic script
add the onclick event handler directly to the element