C# Update

Modified the thumbnail generator code for iOS.