correct type for image index