cleanup useless variables in painter.cl