Renderer cleanup. Extract tplButton, tplIconButton function.