Save gesture to file.