calls get_unique_filename() recursively in case the generated file name already exists. Rather unlikely I guess