# File lib/compass/sass_extensions/functions/sprites.rb, line 252
  def get_sprite_file(map, sprite=nil)
    if sprite
      map.image_for(sprite).file
    else
      map.filename
    end
  end