Improve accuracy of rotate tool

Thanks to PSC user ha_asgag for the tip.
Fix image button distortion on XP

Different handling of premultiplied alpha on XP caused distortion on
semi-transparent pixels when scaling for DPI.