Get rid of Dependency 'Orchard.Media'. Removed some Debug Code