Made the pixel size only computed when changing the coord system or the viewport.