added pixelSize and made constants final