Debugging... Changing for loop to read and save im->data.