Implemented usage of repaint sync framework in scale tool.