fix for deprecated self.naxis1/2

WCS.naxis1/2 were deprecated but are still used in `printwcs()`. This provides a simple fix  for now.
If I get some time today I will try to rewrite this method and make it a bit more general. Will also add a test.
But if not I'd like to merge this today because it breaks our internal software.