Got zooming and panning working perfectly as I wanted.

I created a test sandbox to figure out the zooming and panning. The
subdirectory TestImageWireframe has an index.html that will show the
solution.