1. A computer-implemented method comprising: receiving, by a computing device executing a browser, a request for performing an image-rendering operation on a hypertext markup language (HTML) object in an HTML document rendered in the browser; generating, by the browser, a scalable vector graphics (SVG) object in response to the request; transforming, by the browser, the HTML object into an image based on the SVG object; storing, by the browser, the image in a local memory of the computing device; attaching, by the browser, an image element to the HTML document at a location of the HTML object, the image element referencing the image in the local memory of the computing device; refreshing, by the browser, the rendered HTML document by rendering the image based on the image element; and performing, by the browser, the image-rendering operation on the image.