Solving all possible photo errors