updated imagedata indexing