Moved all paint drawing to PaintHandler class.