add index to newly uploaded image