fixes to refresh method in Paintimator class