the pixel_for_bmap function is all you need