Updated router

If the router is instantiated, set the new ref and call getImages()