Make resource manager obligatory for painters and pass it through plugin interface