update photo api sturct