sepate webp detect to plugin, add onStart config