Adjust aspect ratio logic.