adding img and new index