fit_dimensions: function(width, height) {
            var ratio = 1.0;
            if (this.is_landscape()) {
                if (this.width() > width) {
                    ratio = width/this.width();