bitmap_data_set_flags should have 2 parameters, not 1