Added var heightOfPixels