ThreadPool now creates num_threads (from ProcessImg parameter) threads instead of using a fixed number