Add new image and edit index file