This isn't too surprising. There is no real standard for how data is to be stored in a fits file. Some applications store it top down. Others bottom up. Neither is wrong. But would be obvious when debayered as the patterns would not be the same.
Thanks,
Jared