portrait image fix for tablet and mobile