add Mage class and add media link