fixed path issue with relative path for media