The graph of g(x) was obtained by translating the graph of f(x). Based on the graph, which equation can be used to describe g(x) in terms of f(x) ?
A g(x)=-f(x+2)+1
C g(x)=f(x+2)+1
B g(x)=-f(x-2)+1
D g(x)=f(x-2)+1