NSImage does not conform to NSSecureCoding. Changed to use NSData