Fixing image update in public C/C++ API.