moved number of iterations to arguments
grayscale quickfix