Applied patch from Tadashi Kba for the set_data method for bitmaps.