resolve image manage in js and plugin filerev