Fix viewer for 3-d cubes that have only one channel in 3rd dimension

Just checking that all the tests pass. There aren't any tests for the viewer for now, so I don't anticipate any issues.