Fix inverted sign on vertical offset in zoom to fit mode when image is constrained horizontally.