Update AbstractMedia.php