first iteration with images