    # File lib/compass/sass_extensions/sprites/layout_methods.rb, line 106
            def calculate_diagonal_positions
              previous = nil
              @images.each_with_index do |image, index|
                if previous.nil?
                  previous = image
                  image.top = @height - image.height
                  image.left = 0
                  next
                end
                image.top = previous.top - image.height
                image.left = previous.left + previous.width
                previous = image
              end
            end