Creating and shaping light at single photon level