Works with almost square landscape/portrait images