       #
       # @param element the Angular jQueryLite element
       open: (element) ->
-
-        # The available label map types.
-        labelmapTypes = []
-        labelmapTypes.push overlay.label for overlay in overlays
-
         # The XTK renderer for this image.
         renderer = new X.renderer3D()
         # The image is rendered within the given element.

    # @param timePoint the series time point
    # @returns a new image object
    create = (parent, filename, timePoint) ->
      # TODO - Replace hardcoded temp filepaths with proper references.
      overlays =
        [
          {
            label: 'None'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/blank.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
          {
            label: 'deltaKtrans'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/k_trans_map.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
          {
            label: 'FXR Ktrans'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/k_trans_map.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
          {
            label: 'FXL Ktrans'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/k_trans_map.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
          {
            label: 'v_e'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/v_e_map.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
          {
            label: 'tau_i'
            labelmap:
              accessor: (parent) -> 'data/QIN_Test/tau_i_map.nii.gz'
            colortable:
              accessor: (parent) -> 'data/QIN_Test/generic-colors.txt'
          }
        ]

      labelmapFilename = overlays[0].labelmap.accessor(parent)
      colortableFilename = overlays[0].colortable.accessor(parent)


        volume.labelmap.colortable.file = @colortableFilename
        volume.labelmap.colortable.filedata = @colortableData
        renderer.add(volume)

        # We need this loader as a container to keep track of the current overlay.
        _loader = Type: "None"
        # Display no label map by default.
        volume.labelmap.visible = false
