Used $window to successfully bind to a resize event for ratio maintenance