Cleaned up naming of (internal) rectangle properties.
Fix indentation.
Save binary data in fields to the XML in a way that doesn't make NSXMLDocument croak.

We base64-encode it and add an attribute to the tag. I tried CDATA, but even that has to consist of bytes that are nominally valid UTF8 or NSXMLDocument chokes.