Changed code to use function 'asPixels' for converting numeric values to strings concatenated with 'px'