Firing of AP freelance photographer highlights perils in altering images