add img to index