Added support for Android and Opera ratio detection