Transition from upright to inverted when moving away from a concave mirror