Faster image assembly.
Warning level 4 on VS.
Fixed Linux compile warnings