changed from zip to izip, can now iterate over images and get data from set objects