xrdp-ng: painter refactoring