fix stupid bug in GetPixelWidth / GetPixelHeight.