title: Axios serving png image is giving broken image
body: <p>I am using express as middle-ware api.A person hits my middle-ware , it hits some third party api and returns back the result. Its working fine for all other end points expect an get end point that creates an png and serves it.
  so under method returns response </p>
  
  <pre><code>   _execute = R.curry((reqFunction, req, res) =&gt; {
          reqFunction(req, res).
          then(r =&gt; {
            res.status(r.status).header(r.headers).send(r.data)
          }).
          catch(err =&gt; {
            res.status(err.response.status).header(err.headers).send(err.response.data)
          })
        });
  </code></pre>
  
  <p>and <code>reqFunction</code> is method like</p>
  
  <pre><code>  modelDiagram = (req, res) =&gt; {
      const headers = req.headers;
      const modelName = req.params['modelName'];
      const endPoint = this.modelDiagramEndPoint + '/' + modelName;
      return this.httpRequests.get(endPoint, headers);
    }
  </code></pre>
  
  <p>and <code>httpRequests.get</code> method is</p>
  
  <pre><code>  get = (endPoint, headers) =&gt; {
      let options = {
        method: 'GET',
        url: endPoint
      }
      options = this.addHeaders(headers, options);
      return this._send(options);
    }
  </code></pre>
  
  <p>and this._send is like</p>
  
  <pre><code>  _send = (options) =&gt; {
      return axios(options);
    };
  </code></pre>
  
  <p>the response if I directly hit from browser is like
  ```
  �PNG</p>
  
  <p>IHDRn��7Q�
  IDATx���oHk����D�ȥ|!H�DD�^)"k"n�̤$H�V뒻�Vж"�+��n-"�[��XL��լ�[Z�^����lnK&amp;K���=�9�9z�sʋs�~���g�g��g����gf��l��z��QIcc�dEE�&lt;��?�\YY�վ}�R7!{�����'O�T�C�x�B�fff��۷UYYٿ8��^�a�  ������?��92O��L2w�����{���s�NXZ��k۝N�r�\�&lt;.�N������/_���尵�����ϫ���E�['���"�x˞|f   ���~��N��K�d�����u���3j��u5�����%p6���Sj���ꛎ3>�&lt;)�M�M�y4���v��ܳ{�
  N�gSpCw~��p�[Opr��Φ�F��M@pR8��[�z������ä'O�g����-+�I7�v�����oW��&lt;)�
  �ɓ�|�p��2;&lt;=�)�fF;Փ��4 4ò�����8Qf����V�,X�n��},4À���H�8�n}}�������8"���À7p�/]��j����h�0g�@Bfપ�Too/������z��mD�
  8���Ḹ8�w�^������v�ڵ��v�ܩ��������ݭˬgX�ۺu����
  x@###:��N(�Ο?��o߮6o޼�'YSS�n߉'|����Tcccx����P���<em>::Z����h1�v�U~~����Q)))����9�V;�[�n�tAA����U����l+P$O�[��̙3�3׹Z[���|)�ϯ��WIII</em>>>^
  |���7o�q�~��RzYT��q��@�]7p2���ZZZ�Ç}v^TT��Feee&lt;��0�;v�P�����o�U[[�����<code>e��   ���Q������m]]��,//ϻ~EE��3"��ի���&lt;h���[���Έ����;��.Y^��SYY��</code>�<em>l�'X�ն���j����4##C/���{��@u�.P{�
  �Ѹ<code>;7��</code>��9�a58����j[���u����3</em>�Ȝ'��Zu~8��������{���ӧO��\�IWWW�lc̃����6Z�sIo۶Mϛ�p��ޮӒ'�+��3P[�yH�|e����e���аf�����+鱱1UZZj���N����T}�577���r�<code>��F�A����1b�b����R��0�O�拓@e���-�C%&amp;&amp;�mUTTԚO��$e�H1��ӿ���A}A#?��������H�����#�&amp;7bo�%z�̐3/77W�&gt;��#/8�a�a�p�ÀÀ�88:�Hyz�x��[�].�L$|w &lt;55����tvv����z=77���۸HhN��;�_�yV��!�@o�l��ߟ���Y!�!�ppp�C�C����888�!�!�!�pppp�C�C������8zppp��)�&gt;w�����k��[V��N�S�\�W�X'�zzz/��X���ˇ�-��W"
  h���l�-�|w�v��������hy06���|�N1Կ�jDM/�����'�����/՝��5��w�[:���Hr�zc  �����η�37��C��U����8�a�pNn�C�ƍ�M�ɣ�P����&amp;��a�&lt;�����|�ppp��0�8�a�a�.���xb;u���8���k׮��?�\EEE�t��I���*))I��ǫ��]6;;����Ull����Q��</code>�3��|��ƍ�zU\�.����y���z���W���+�����W�Ѽ�v���RGJJ�ONN���推���!鼼&lt;]��7ܪ��M[Ғglk�9uꔷ��������kjjt^UU�^>wr�����}&amp;$$����H�GFF��YYY�.77W�t���d�aɼl�^ZZ�6"�XwϞ=:��@qYY�Η��O�����T�,���cLKKS���A�<code>�}���8pi���^xN�Gcݒ�������N���ѣ�u233u~SS�&gt;y����d�?11���dx��9���V-,,�5栵:�#�d{{�NK���1J}:-s��˗��HZ�e~mnn^1?ÜX���9$=66�JKK}�d��tuuu䂓�]�P����VK�$J�l'��y����X�����6�?::��dH4G���P�������B��&amp;s�� Nr���O�\���
  8�0�0�8�a�a�p��8l'p��V^��t��5�w�ᩩ�/-w���sOWW�빹��t��E�@s:��Y�҇ȳ�n��|�fC,��,$h!�B!����?Ǔ�8���IEND�B</code>�
  ```</p>
  
  <p>but image is broken. I have tried many things like <code>req.end</code> and explicitly setting headers but I am not able to solve it.Please guide me</p>