Bringing cross-browser compatibility for background-size 'cover' and 'contain' modes