Implemented cs_scalar to path extension and fixed half pixel alignment for 2D.