   componentWillUnmount: ->
     window.removeEventListener 'keydown', @onPressSpaceBar
 
-  zoomImage: (preview) ->
+  zoomImage: (i, preview) ->
+    @setState zoomImageCurrent: i
     @setState zoomImageSrc: preview
     @refs.imageZoom.show() if window.innerWidth > 600
 

    previews =
      @props.previews?.map (preview, i) =>
        <figure key={i}>
          <img src={preview} onLoad={@onImageLoad.bind(@, null)} onClick={@zoomImage.bind(null, preview) if window.innerWidth > 600} />
        </figure>

    source = if @isFirefox then @props.video.webm else @props.video.mp4


  modifyOverlay: ->
    @overlay.addEventListener 'click', @closeZoom
    window.addEventListener 'keydown', @onPressKeyInZoom

  closeZoom: ->
    @dialog.classList.add 'fade-out'
