A comparison of high resolution optical and radio observations of W3