viewPhoto bound to $rootScope