refactor PaintroidApplication