revert sprite_file function path return value