Updated JS to display images.