got image iteration working