Added thread pool to handle concurrent image classification