Make the results look somewhat better by using wxIMAGE_QUALITY_NEAREST which preserves sharp horizontal and vertical edges in the images which are common in the icons, with which this function is often used, instead of blurring them as wxIMAGE_QUALITY_HIGH does. This is also much (factor of ~40) faster, which shouldn't hurt neither.