         renderer.container = element[0]
         # Build the renderer.
         renderer.init()
-        # The volume to render.
+        # The volume and label map to render.
         volume = new X.volume()
         volume.file = @filename
         volume.filedata = @data

      colortableFilename: colortableFilename
      timePoint: timePoint

      # The image state loading flag is true if the file is being
      # loaded, false otherwise.
      state:
        loading: false
        loaded: false

      # The image file content.
      data: null
      labelmapData: null
      colortableData: null

      # Transfers the image file content to the data property.
      # The image state loading flag is set to true while the
      # file is read.
      #
      # @returns a promise which resolves when the image file
      #   read is completed
      load: ->
        # Set the loading flag.
        @state.loading = true

        # Read the file into an ArrayBuffer. The Coffeescript fat
        # arrow (=>) binds the this variable to the image object
        # rather than the $http request.
        scanFile = File.read(filename, responseType: 'arraybuffer').then (data) =>

    # Creates an object which encapsulates an image. The object has
    # the following properties:
    # * filename - the image file name
    # * labelmapFilename - the label map (overlay) file name
    # * colortableFilename - the color lookup table file name
    # * state - contains the loading flag
    # * data - the binary image content
    # * labelmapData - the label map image content
    # * colortableData - the color table content
    # * load() - the function to read the image file
    #
    # @param parent the image parent container
