Changed c++ mode to c++0x from c++11. More compatible with other versions of cc1plus this way.
Reintroduced republishing of captured images