Fix the unpleasant flash in zoom in/out