Moved custom painter to ui package