Add option to save a player frame to a file (#2133).