added setMediaFolder to get file path