Generate thumbnails using multiple processes

This speeds up things somewhat. It generates as many processes as there
are cpus.

Closes #7.