use MediaUtil instead of customized Uri parsing function
changed file path outputs to uri strings
changed input path check to make it Uri
ready tests