Reimplemeting stringToColor
Current implementation is JavaScript-based. However, this function is frequently invoked and has a memory leaking issue. The first option would be reimplementing it in C++ and make ImageItem figure out default color by itself. The other option would be fixing the memory leak of the function.