Fixed the clear button, by adding pixels[i][j].repaint()