     @similar = null
     @form = form
     @force_file = null
-    form.on 'submit', @form_submit_event.bindAsEventListener(this)
+    form.on 'submit', @form_submit_event
     return
 
-  form_submit_event: (e) ->
+  form_submit_event: (e) =>
     post_file = @form.down('#file')
 
     # If the files attribute isn't supported, or we have no file (source upload), use regular

    e.stop()
    if @similar
      @similar.destroy()
    @similar = new ThumbnailUserImage(file, @complete.bind(this))
    return

  # Submit a post/similar request using the image currently in the canvas.
  complete: (result) ->
    if result.chromeFailure
      notice 'The image failed to load; submitting normally...'
      @force_file = @file


  # When the image finishes loading after form_submit_event sets it, update the canvas
  # thumbnail from it.
  image_load_event: (e) =>
    # Reduce the image size to thumbnail resolution.
    width = @image.width
    height = @image.height
