   loadFrames: =>
     @destroyFrames()
     subject_info = @classification.subject.location
-    numImages = subject_info.standard.length
-    for i in [0...numImages]
+    for i in [0...@numFrames]
       frame_id = "frame-id-#{i}"
       frameImage =
         @markingSurfaceList[i].addShape 'image',


  updateGhostMark: (mark) ->
    for ghostMark in [ @el.find(".ghost-mark")... ]
      ghostMark.remove() if ghostMark.getAttribute 'from-frame' is mark.frame and ghostMark.getAttribute 'from-asteroid' is @currAsteroid.id
        
  onDestroyMark: (mark) =>
    console.log 'mark destroyed'
    console.log 'mark.frame = ', mark.frame
    @destroyMarksInFrame mark.frame
    @updateIconsForDestroyMark mark.frame

      @doneButton.prop 'disabled', false

    console.log @asteroidMarkedInFrame
    tool.controls.controller.setMark(surfaceIndex, @currAsteroid.id)

  onChangeFrameSlider: =>
