The first diagram is just incorrect. Plants absorb CO2 and release oxygen not the way it is in the picture.