paintLayer not being called on repaint