Performance

improve print_bitmap() function performance