making thumbnail creation parallel.