Fixed update avatar photo function