         opts = info.crop
 
         img = new Image()
-        img.src = @previewUrl
-        img.onload = =>
+        img.onload = ->
           if opts.sw || opts.sh # Resized?
             sw = opts.sw || opts.sh * opts.width / opts.height
             sh = opts.sh || opts.sw * opts.height / opts.width

            height: img.height * sy
          }))
          $(selector).html(el)

    __extendPromise: (p) =>
      p.cancel = @__cancel

      dimensions: @dimensions

    dimensions: =>
      url = @previewUrl

      $.Deferred(->
        img = new Image()

        img.onload = =>
          @resolve
            width: img.width
            height: img.height

        img.src = url
      ).promise()

    __cancel: =>
