Added vertical zoom support (imported from giv).