index for output images