Modified index for new add pic
Modified index for new add pic + function