routing file updated with the function to display images being fetched from db