             xml.lookupNamespaceURI ns
         xpath = (query) -> xml.evaluate(query, xml, resolver, XPathResult.STRING_TYPE, null).stringValue
         
-        @setThumbnailImage xpath '/atom:entry/media:group/media:thumbnail[@yt:name="default"]/@url'
-        @setThumbnailTitle xpath '/atom:entry/atom:title'
-        @setThumbnailLink @uri
+        @setPreviewImage xpath '/atom:entry/media:group/media:thumbnail[@yt:name="default"]/@url'
+        @setPreviewTitle xpath '/atom:entry/atom:title'
+        @setPreviewLink @uri
 
-class ImgurScraper extends Media.Scraper
+class ImgurScraper extends Media.ThumbnailScraper
   Media.register this
   
   @doesUriMatch: (uri) ->

  @doesUriMatch: (uri) ->
    uri.path.match(PATTERN)?
  
  loadThumbnailImage: ->
    @setThumbnailImage 'images/camera.png'

window.Media = Media;
    else
      false
  
  loadPreview: ->
    id = @uri.path.match(/// ([^/]+) (?: \. [^/]+ )? $ ///)?[1]
    
    if id?
      $.getJSON "http://api.imgur.com/2/image/#{id}", (data) =>
        @setPreviewTitle data.image.image.title ? @source.text()
        @setPreviewImage data.image.links.small_square
        @setPreviewLink data.image.links.imgur_page

class GenericImageScraper extends Media.ThumbnailScraper
  Media.register this
  
  PATTERN = /// \. (?: bmp | gif | jp2 | jpe?g | png | tiff? ) $///i
