Move duplicated code responsible for rescaling bitmaps in wxArtProvider to the shared wxArtPrvider::RescaleBitmap() method. Additionally, make this new method work even in wxUSE_IMAGE==0 case. See #17071. See https://github.com/wxWidgets/wxWidgets/pull/64.