         ][orientation - 1]
 
         if not trns
-          df.reject('')
+          return df.reject('bad image')
 
         canvas = document.createElement('canvas')
         canvas.width = dW

      df.reject('not image')
    op.done (e) ->
      img = e.target

      if maxSource and img.width * img.height > maxSource
        img.src = '//:0'
        df.reject('max source')
        return

      ns.getExif(file).always (exif) ->
        orientation = ns.parseExifOrientation(exif) or 1

          ctx.fillStyle = bg
          ctx.fillRect(0, 0, dW, dH)
        ctx.drawImage(img, 0, 0, dW, dH)

        df.resolve(canvas, sSize)

