Fixed final drawing pass to scale image correctly.

Also brought in glmatrix library for doing vector and matrix math in js
more easily, and added ability to zoom composited image.