added image file iteration