One-pot method to prepare a theranostic nanosystem with magnetic resonance imaging function and anticancer activity through multiple mechanisms.