Also keep maxY into account when scaling a preview while preserving aspect ratio