change pixelWidth/pixelHeight to getters