Added Utkarsh's pixelWidth function (still in testing phase).