Code that needs some fixing to display header images properly