Add pan and zoom facilities when viewing a large image resource.

Also includes the ability to enable or disable annotations, since panning and zooming and annotations don't play well together.