I am trying to create a word file by writing simple `html` to .docx file for my iOS app. The `html` content has some img tags as well with absolute paths for images. The file created works fine when accessed from the same computer (accessing it from where simulator created it), but when I try to send the `docx` to someone else it is missing images. I am using the following code to create and write to file. 

I want it to embed in my docx file. How do I achieve that?

```
NSString *userText = @"Hello, world!";

NSMutableString *html = [NSMutableString stringWithFormat:@"<html><body><h1>%@</h1><hr><br/> <img src=\"icon.png\"/></body></html>", userText];

NSString *docsFolder = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];

NSString *filename = [docsFolder stringByAppendingPathComponent:@"sample.docx"];

NSError *error;
[html writeToFile:filename atomically:NO encoding:NSUTF8StringEncoding error:&error];
if (error) {
    NSLog(@"Error occured");
}

```