adding image index back in