Adding code to display images