modified mediaPathFormView delegate method to work dynamically apart from local paths