Replaces the bitmap's pixels with the same image followed by each half-size level, down to 1 by 1.
bitmap_build_mipmaps :: (bitmap: *Bitmap)