     # console.log 'SUBJECT: ', @state.subject
     viewBox = [0, 0, @state.imageWidth, @state.imageHeight]
     ToolComponent = @state.tool
-    console.log "Rendering #{if @props.active then 'active' else 'inactive'} subj viewer"
+
+    # DEBUG CODE
+    # console.log "Rendering #{if @props.active then 'active' else 'inactive'} subj viewer"
 
     scale = @getScale()
 

        tool: @props.annotation._toolIndex
      if toolDescription.details?
        mark.details = for detailTaskDescription in toolDescription.details
          console.log "!taskTacking", tasks[detailTaskDescription.type]
          tasks[detailTaskDescription.type].getDefaultAnnotation()

    @props.annotation.value.push mark
    @selectMark @props.annotation, mark

    MarkComponent = markingTools[toolDescription.type]

    console.log 'FOO ', markingTools

    if MarkComponent.defaultValues?
      defaultValues = MarkComponent.defaultValues mouseCoords
      for key, value of defaultValues
        mark[key] = value

    console.log 'BAR'

    if MarkComponent.initStart?
      initValues = MarkComponent.initStart mouseCoords, mark, e

            # console.log @state.loading
            # console.log "Finished Loading."

  # VARIOUS EVENT HANDLERS

  handleInitStart: (e) ->
    @props.annotation["subject_id"] = @props.subject.id
    @props.annotation["workflow_id"] = @props.workflow.id

