Oxygen molecules evolved during photosynthetic comes from H2O not CO2. It was proved by Ruben, Hassid and Kamen by using H2O18in place of normal water. The released oxygen was containing O18 isotopes which proved that oxygen comes from H2O molecule not from CO2.