img { max-width: 800px; width: expression(this.width > 800 ? 800: true); }