added code to display images