Shaping the propagation of light in complex media