Remove randomness in BitmapFormatTest.

The randomness could generate bad input (negative numbers), which would
fail the test at occasionally. Instead iterate over all possible
permutations, the space of possible combinations is small enough.