added pixelWidth function