Android:
We do not have an out-of-the-box solution for this requirement.
However, you can customize our SDK and create it on your own. You will have to create a custom tool for the templates. You can get the example for a custom tool from here and modify it for your needs.
For loading the template, you can use theIMGLYFileReader(stateHandler).readJson(input: InputStream, source: Uri)
API to load both the serialization and the source image together.