By rendering the map in segments and stitching the renders together. This may mean using a different library for rendering the jpgs