         url: '?detail'
         resolve:
           Session: 'Session'
-          detail: (session, Session, Subject) ->
-            getSessionDetail(session, Session, Subject)
+          Image: 'Image'
+          detail: (session, Session, Subject, Image, Helpers) ->
+            getSessionDetail(session, Session, Subject, Image, Helpers)
         views:
           'main@':
             templateUrl: '/partials/session-detail.html'

      .state 'quip.subject.detail',
        url: '?detail'
        resolve:
          detail: (subject, Subject) ->
            getSubjectDetail(subject, Subject)
        views:
          'main@':
            templateUrl: '/partials/subject-detail.html'

            throw "Subject #{ subject.number } does not have a session #{ session.number }"
          # Recurse.
          session.detail = sbj_session.detail_id
          getSessionDetail(session, Session, Subject, Image, Helpers)
        
    $stateProvider
      # The top-level state. This abstract state is the ancestor
