We don't want to compile the image from KV pairs for every getImage request, so we need to have a working copy of the image in memory that can be modified through key-value put operations.
1.) Set up struct for in-memory byte array modification
2.) Compile the in-memory byte array from the key-value pairs
3.) Recompile the in-memory image in the Sync method
4.) Return the image when requested from the API server
We don't want to compile the image from KV pairs for every getImage request, so we need to have a working copy of the image in memory that can be modified through key-value put operations.
1.) Set up struct for in-memory byte array modification 2.) Compile the in-memory byte array from the key-value pairs 3.) Recompile the in-memory image in the Sync method 4.) Return the image when requested from the API server