Macromolecular dual optical and magnetic resonance imaging agents