Propagation and storing of light in optically modified atomic media