 
       @container.css 'background-image', 'url(' + image.source + ')'
       @header.html if image.title then templates['image-title'].replace '{{title}}', image.title else ''
-    @
-
-  ###
-   Обновление миниатюр
-  ###
-  updateThumbnails: ->
-    @thumbnails.find('.selected').removeClass 'selected'
-
-    thumbnail = @thumbnails.find('[data-cid=' + @current + ']').addClass 'selected'
-
-    width = thumbnail.outerWidth() + toInt thumbnail.css('margin-right')
-    left  = thumbnail.offset().left
-
-    if @thumbnails.width() < width + left
-      offset = @thumbnails.scrollLeft() + width
-      offset = width + left if @thumbnails.width() + offset < width + left
-
-    else if @thumbnails.scrollLeft() > left
-      offset = if left < width then 0 else @thumbnails.scrollLeft() - width
-
-    @thumbnails.scrollLeft offset if offset > 0
     @
 
   ###

      _this.updateDimensions current.width, current.height

    @

toInt = (string) -> parseInt string, 10


      @_addToGallery object, image
    @

  ###
   Показать изображение на большом экране
  ###
  show: (cid) ->
    cid = @_getImageFromUri() unless cid?
    cid = 1 if cid <= 0
    throw 'Image not found' unless @images[cid]?

