Stabilise the GL image with respect to window resizes.  Still needs some clean up.