CMake Code

fix the Code to work under cygwin
Prepare imagetool for @2x