Bitmap operations helper