update script for angular photo and update index reference