bugfixes in read_bitmap_data() and print_bitmap()