Add portrait dimension compression to maintain aspect ratio for portrait images