Edits to index and image upload