    # File lib/compass/sass_extensions/sprites/sprite_methods.rb, line 63
            def generate
              if generation_required?
                if kwargs.get_var('cleanup').value
                  cleanup_old_sprites
                end
                engine.construct_sprite
                Compass.configuration.run_callback(:sprite_generated, engine.canvas)
                save!
              end
            end