Added var widthOfPixels