Manipulating thermal light states by the controlled addition and subtraction of single photons