rewrite bitmap_init().