Support image re-sizing in Windows