Fix using bitmaps with masks in wxStaticBitmap and bitmap rescaling in wxArtProvider. See #22096. Closes #22094.