Using for loop in 'image_iter' example