optimize Pureview plugin, resolved #294 in v2.x