This phase I trial studies the side effects of dynamic contrast enhanced magnetic resonance imaging (DCE-MRI) in patients with advanced breast or pancreatic cancer with metastases to the liver or lung. Diagnostic procedures, such as DCE-MRI, may help measure a patient's response to treatment