Convert kernels to run one pixel per thread.

This has resulted in a roughly 3x speedup.