fix for portrait images