improve build pic dict to multi-thread