added code to use pictures as links