Move iterator initialization to the respective image files