title: Can you downsample an image from a websocket prior to rendering
body: <p>I have an app that is pulling in images through a websocket roughly a few times per second from a server. There is a significant load on the app and the images sometimes skip renderings.</p>
  <p>The images themselves are of a much higher resolution than necessary and downsampling them prior to render would help a lot. Is that possible?</p>
  <p>Here is the websocket code:</p>
  <pre><code>const ws = new WebSocket(config.videoWebSocketURL);
  &lt;img className={styles.img} src={`data:image/jpeg;base64,${data}`} /&gt;
  </code></pre>
  <p>Any other ideals to speed up rendering are welcome.</p>