Implement Repaint command