dont use deprecated call to photo index