More tests for ImageWin

 * Not much to test because most is Windows-only code.
 * Helps towards: Test coverage >= 80% #722.
 * flake8.