Build in Win8

Adapted to work in windows
Fix imageStatic error in width ratio

Fix imageStatic error in width ratio