only load photos at viewdidload not viewdidappear