I learned today there can be problems on some devices, some times, when adding an image via ADD-IMAGE-GALLERY. We have a bug report on this and will be working to identify what causes it, and if possible we will include a fix in the next release.
In the meantime, please get back to me with your version of SmartOffice 2. Be sure to upgrade if you are not running the current version 2.3.10,
Also, please let me know if you were inserting from Gallery or from Photos when you got the "out of memory" error message.
Finally, if you were inserting from Gallery, please try to insert from Photos and see if you get the same error message. If you can insert from Photos, then try to insert from Gallery. In some cases, after inserting successfully from Photos, you will be able to insert from Gallery. Be sure to let me know the results if you try this technique.