rename unitSize2D to pixelsPerUnit.