882088 - better calculation for square images