fix for deprecated self.naxis1/2
Merge pull request #2445 from nden/wcs-naxis

fix for deprecated self.naxis1/2