Add flags field for bitmaps