   if @frame_editor
     @frame_editor.set_image_dimensions @displayed_image_width, @displayed_image_height
 
-  ### If we're resizing and showing the full-size image, don't snap the position
+  # If we're resizing and showing the full-size image, don't snap the position
   # back to the default. 
-  ###
-
   if resizing and @viewing_larger_version
     return
   x = 0.5
   y = 0.5
   if @viewing_larger_version
-
-    ### Align the image to the top of the screen. ###
-
+    # Align the image to the top of the screen.
     y = @image_window_size.height / 2
     y /= @displayed_image_height
   @center_image_on x, y
   return
 
-### x and y are [0,1]. ###
-
+# x and y are [0,1].
 BrowserView::update_navigator = ->
   if !@navigator
     return
   if !@img
     return
 
-  ### The coordinates of the image located at the top-left corner of the window: ###
-
+  # The coordinates of the image located at the top-left corner of the window:
   scroll_x = -@img_box.offsetLeft
   scroll_y = -@img_box.offsetTop
 
-  ### The coordinates at the center of the window: ###
-
+  # The coordinates at the center of the window:
   x = scroll_x + @image_window_size.width / 2
   y = scroll_y + @image_window_size.height / 2
   percent_x = x / @displayed_image_width

  # This also helps us avoid briefly displaying the old image with the new dimensions, which
  # can otherwise take some hoop jumping to prevent.
  ###

  if @img != null and @img != undefined
    @img.stopObserving()
    @img.parentNode.removeChild @img
    @image_pool.release @img
    @img = null

  ### If this post is blacklisted, show a message instead of displaying it. ###

  hide_post = Post.is_blacklisted(post.id) and post.id != @blacklist_override_post_id
  @container.down('.blacklisted-message').show hide_post

  @img_box = @container.down('.image-box')
  @container.down '.image-canvas'

  # In Opera 10.63, the img.complete property is not reset to false after changing the
  # src property.  Blits from images to the canvas silently fail, with nothing being
  # blitted and no exception raised.  This causes blank canvases to be displayed, because
  # we have no way of telling whether the image is blittable or if the blit succeeded. 
  if !Prototype.Browser.Opera
    @canvas = create_canvas_2d()
  if @canvas
