add plugin to support local avatar