change schema of photo