bitmap_data_set_flags should be two parameters