Modiffied the code to  properly show the images for the different tabs.