Fixed bug when a specific number of iterations is requested and all pixels are covered.