small fix in image_iterator