Restore the depth functionality removed in the last refactor, and fix the endian for uncompressed bitmaps.  Reminds me of the old adage: 'If its not broken, don't fix it'.