frontend: do all bpp handling in plugin_lib