JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<img src="http://static.stuff.co.nz/files/FXXK2.jpg" width="1000px">

JavaScript

$(document).ready(function(){//executa quando terminar de carregar a pagina
          $('img').each(function(){//passa em todas as imagens (aqui pode fazer mais filtros coloquei generico)
             $(this)
                .css({
                   'max-width':$(this).width(),
                   'width':'100%'
                })
                .removeAttr('width')
             ;//transforma o wdth como maximo e atualiza para ficar responsive
          });   
       });