utils: added ni_format_bitmap utility