Fix channel alignment

The wrong index was being used, resulting in garbage (although kind of cool-looking!) output.

The test I modified only covers the 3-channel case, but the others should probably get their own pixel spot checks as well.