image: fix image retrieval from iterator