Small utility module to convert between integer representations of bitmaps and arrays