Added function to the routes method so image pages can be generated