Reduce the image to the output grid
A source photo may contain millions of pixels, but a terminal or README needs tens or hundreds of characters per line. The browser draws a reduced version to an off-screen Canvas at the selected width. Height is calculated from the original aspect ratio and corrected for the fact that text cells are usually taller than they are wide.
