add MediaResource#size
add some methods to MediaResource
完成资源文件删除逻辑