added multithreading thumbnail generator