cmake: Add Windows cmd configuration template
ImageTools: Correct autoscaling logic

Thanks to Strachu for these corrections.
Set the Sphinx version to 1.2.2
Merge pull request #1307 from rleigh-dundee/cmake-winconfig

cmake: Add Windows cmd configuration template
Merge pull request #1314 from sbesson/sphinx_122

Set the Sphinx version to 1.2.2
Merge pull request #1308 from rleigh-dundee/imagetools-fixes

ImageTools: Correct autoscaling logic