     @current = cid
 
     @container.removeClass 'show'
+    @header.removeClass 'show' if @header.hasClass 'show'
 
     if isHistory and updateHistory
       title = if @images[cid].title then 'Image: ' + @images[cid].title else null

      _this.updateDimensions current.width, current.height

    @

toInt = (string) -> parseInt string, 10



    left = toInt width / 2

    top  = height / 2
    top += thumbnails / 2   if thumbnails > 0
    top -= headerHeight / 2 if headerHeight > 0

    style =
      'width':  toInt(innerWidth / 2 - left) + 'px'
