Update MediaManager.php