Rewriting zoom to be based on aspect ratios