Decode and enroll images from strings in C API