Updating the router and defining pictures within the AngularJS Factory