ImageIndex fix