Generate filenames and use relative paths.