     # image
     # regular
     __setState: (state, data) ->
+      @__state = state
       @container.empty().append(tpl("tab-preview-#{state}", data))
 
       if state is 'unknown' and @settings.crop

              img = @element('image').attr('src', src)[0]
              @initImage([img.width, img.height])
          .always =>
            URL.revokeObjectURL(src)

      @__setState('unknown', {})
      @file.progress ifCur (info) =>


      @file.done ifCur (info) =>
        state = if info.isImage then 'image' else 'regular'
        if state != 'image' or state != @__state
          @__setState(state, {file: info})

      @file.fail ifCur (error, info) =>
        @__setState('error', {error, file: info})
