Converted bit operations to support multiple bitmaps