Added image retrieval as a separate json route and set up the image retrieval in html to be via the new route. Now just need to work out how to add images to the database