add img and index