fixed redundant prefixing of localPath to mediaPath