if your bitmap is in flash storage (PROGMEM attribute) then you can't change it. In order to change something it needs to be in SRAM and not declared as const
the fact that the function's signature says const uint8_t&
does no mean you need to pass a const
data reference but that the function won't modify it.
so define
uint8_t aBitmap[] = {151,146,242,146,151,0,255,0}; // 8x8 bitmap
and call the display
drawBitmap(0, 0, aBitmap, 8, 8, BLACK, WHITE); // assuming the first parameters are (x,y) and the other (w,h)